You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this.query+='\nINSERT INTO "'+this.table.name+'" SELECT * FROM "'+oldname+'";\n'
89
+
this.query+='DROP TABLE "'+oldname+'";\n'
90
+
this.query+='ALTER TABLE "'+this.table.name+'" RENAME TO "'+oldname+'";\n'
91
+
this.table.name=oldname
92
+
/*
93
+
TODO
94
+
Use CREATE INDEX, CREATE TRIGGER, and CREATE VIEW to reconstruct indexes, triggers, and views associated with table X. Perhaps use the old format of the triggers, indexes, and views saved from step 3 above as a guide, making changes as appropriate for the alteration.
95
+
96
+
If any views refer to table X in a way that is affected by the schema change, then drop those views using DROP VIEW and recreate them with whatever changes are necessary to accommodate the schema change using CREATE VIEW.
97
+
98
+
If foreign key constraints were originally enabled then run PRAGMA foreign_key_check to verify that the schema change did not break any foreign key constraints.
0 commit comments