u
This commit is contained in:
@@ -434,9 +434,9 @@ export class BetterSqlite3Provider extends BetterSqlite3Executor {
|
||||
`ALTER TABLE article ADD COLUMN track_stock INTEGER NOT NULL DEFAULT 1`,
|
||||
);
|
||||
}
|
||||
if (articleCols.length > 0 && !articleCols.includes('fatherattributename_id')) {
|
||||
if (articleCols.length > 0 && !articleCols.includes('parentattributename_id')) {
|
||||
this.db.exec(
|
||||
`ALTER TABLE article ADD COLUMN fatherattributename_id INTEGER REFERENCES attributename(id) ON DELETE NO ACTION`,
|
||||
`ALTER TABLE article ADD COLUMN parentattributename_id INTEGER REFERENCES attributename(id) ON DELETE NO ACTION`,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user