spine-framework 0.1.60 → 0.1.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -490,7 +490,12 @@ async function installApp(slug: string, options: InstallOptions): Promise<void>
|
|
|
490
490
|
console.log(` ⏭️ No seed/ directory — skipping data seeding`)
|
|
491
491
|
} else {
|
|
492
492
|
console.log(`\n🌱 Applying seed data...`)
|
|
493
|
-
const
|
|
493
|
+
const SEED_ORDER = ['accounts.json', 'types.json', 'link-types.json', 'roles.json', 'pipelines.json', 'triggers.json']
|
|
494
|
+
const allFiles = readdirSync(seedDir).filter(f => f.endsWith('.json'))
|
|
495
|
+
const seedFiles = [
|
|
496
|
+
...SEED_ORDER.filter(f => allFiles.includes(f)),
|
|
497
|
+
...allFiles.filter(f => !SEED_ORDER.includes(f)),
|
|
498
|
+
]
|
|
494
499
|
|
|
495
500
|
let totalInserted = 0
|
|
496
501
|
let totalErrors = 0
|
|
@@ -139,7 +139,8 @@ CREATE TABLE IF NOT EXISTS public.roles (
|
|
|
139
139
|
app_id uuid,
|
|
140
140
|
account_id uuid,
|
|
141
141
|
created_at timestamptz DEFAULT now(),
|
|
142
|
-
updated_at timestamptz DEFAULT now()
|
|
142
|
+
updated_at timestamptz DEFAULT now(),
|
|
143
|
+
UNIQUE (app_id, slug)
|
|
143
144
|
);
|
|
144
145
|
|
|
145
146
|
-- apps (no dependencies on other custom tables)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install-app.d.ts","sourceRoot":"","sources":["../../../.framework/cli/commands/install-app.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"install-app.d.ts","sourceRoot":"","sources":["../../../.framework/cli/commands/install-app.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAugBxC,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,OAAO,QAgB1D"}
|