mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-06 13:18:58 +00:00
update store schema when configuring corrosion, create machines table
This commit is contained in:
1 parent
69c9167355
commit
3e9718f08c
4 files changed
+50
-35
No files matched your search
@@ -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