switch install state to db
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
class CreateSetupStates < ActiveRecord::Migration[8.1]
|
||||
def change
|
||||
create_table :setup_states do |t|
|
||||
t.boolean :installed, null: false, default: false
|
||||
t.datetime :installed_at
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -88,7 +88,9 @@ BEGIN
|
||||
INSERT INTO entries_fts(entries_fts, rowid, fi, en, sv, no, ru, de, notes)
|
||||
VALUES('delete', old.id, old.fi, old.en, old.sv, old.no, old.ru, old.de, old.notes);
|
||||
END;
|
||||
CREATE TABLE IF NOT EXISTS "setup_states" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "installed" boolean DEFAULT FALSE NOT NULL, "installed_at" datetime(6), "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL);
|
||||
INSERT INTO "schema_migrations" (version) VALUES
|
||||
('20260122131000'),
|
||||
('20260122130000'),
|
||||
('20260122124151'),
|
||||
('20260122123837'),
|
||||
|
||||
Reference in New Issue
Block a user