mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-27 19:43:34 +00:00
update store schema when configuring corrosion, create machines table
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
CREATE TABLE machines
|
||||
(
|
||||
id TEXT NOT NULL PRIMARY KEY,
|
||||
name TEXT AS (json_extract(info, '$.name')),
|
||||
info TEXT NOT NULL DEFAULT '{}' CHECK (json_valid(info))
|
||||
);
|
||||
|
||||
CREATE INDEX idx_machines_name ON machines (name);
|
||||
@@ -0,0 +1,6 @@
|
||||
package store
|
||||
|
||||
import _ "embed"
|
||||
|
||||
//go:embed schema.sql
|
||||
var Schema string
|
||||
Reference in New Issue
Block a user