( key TEXT PRIMARY KEY, value TEXT NOT NULL ); INSERT INTO app_metadata (key, value) VALUES ('app_version', '1.0.0') ON CONFLICT (key) DO UPDATE SET value = EXCLUDED.value; R__Insert_app_version.sql
EXISTS app_metadata ( key TEXT PRIMARY KEY, value TEXT NOT NULL ); INSERT INTO app_metadata (key, value) VALUES ('app_version', '1.0.0') ON CONFLICT (key) DO UPDATE SET value = EXCLUDED.value; R__Insert_app_version.sql Updates the checksum of the file
( key TEXT PRIMARY KEY, value TEXT NOT NULL ); INSERT INTO app_metadata (key, value) VALUES ('git_commit', '${git.commit}') ON CONFLICT (key) DO UPDATE SET value = EXCLUDED.value; R__Insert_app_version.sql Inserts the git hash
exists -- precondition: assert that the table 'app_version' exists -- precondition-on-fail: WARN (logs a warning and continues) -- precondition-sql: SELECT COUNT(*) FROM information_schema.tables WHERE table_name = 'app_version' -- Migration to add a new column to app_version ALTER TABLE app_version ADD COLUMN description VARCHAR(255);
exists -- precondition: assert that the table 'app_version' exists -- precondition-on-fail: WARN (logs a warning and continues) -- precondition-sql: SELECT COUNT(*) FROM information_schema.tables WHERE table_name = 'app_version' -- Migration to add a new column to app_version ALTER TABLE app_version ADD COLUMN description VARCHAR(255);
exists -- precondition: assert that the table 'app_version' exists -- precondition-on-fail: WARN (logs a warning and continues) -- precondition-sql: SELECT COUNT(*) FROM information_schema.tables WHERE table_name = 'app_version' -- Migration to add a new column to app_version ALTER TABLE app_version ADD COLUMN description VARCHAR(255);
exists -- precondition: assert that the table 'app_version' exists -- precondition-on-fail: WARN (logs a warning and continues) -- precondition-sql: SELECT COUNT(*) FROM information_schema.tables WHERE table_name = 'app_version' -- Migration to add a new column to app_version ALTER TABLE app_version ADD COLUMN description VARCHAR(255);
exists -- precondition: assert that the table 'app_version' exists -- precondition-on-fail: WARN (logs a warning and continues) -- precondition-sql: SELECT COUNT(*) FROM information_schema.tables WHERE table_name = 'app_version' -- Migration to add a new column to app_version ALTER TABLE app_version ADD COLUMN description VARCHAR(255);
exists -- precondition: assert that the table 'app_version' exists -- precondition-on-fail: WARN (logs a warning and continues) -- precondition-sql: SELECT COUNT(*) FROM information_schema.tables WHERE table_name = 'app_version' -- Migration to add a new column to app_version ALTER TABLE app_version ADD COLUMN description VARCHAR(255);