Move migrate tool to container
This commit is contained in:
1 parent
93f2a5ed50
commit
83355f8bbc
5 files changed
+12
-17
No files matched your search
@@ -13,19 +13,5 @@ FROM isp_config_service__event;
|
||||
DROP TABLE isp_config_service__event;
|
||||
|
||||
ALTER TABLE isp_config_service__event_autoincrement RENAME TO isp_config_service__event;
|
||||
-- +goose Down
|
||||
CREATE TABLE isp_config_service__event_without_autoincrement (
|
||||
id integer primary key,
|
||||
payload blob not null,
|
||||
created_at integer not null default (unixepoch())
|
||||
);
|
||||
|
||||
INSERT INTO
|
||||
isp_config_service__event_without_autoincrement (id, payload, created_at)
|
||||
SELECT id, payload, created_at
|
||||
FROM isp_config_service__event;
|
||||
|
||||
DROP TABLE isp_config_service__event;
|
||||
|
||||
ALTER TABLE isp_config_service__event_without_autoincrement
|
||||
RENAME TO isp_config_service__event;
|
||||
-- +goose Down
|
||||
@@ -1,4 +1,5 @@
|
||||
-- +goose Up
|
||||
-- +goose NO TRANSACTION
|
||||
drop table isp_config_service__backend;
|
||||
|
||||
create table isp_config_service__backend
|
||||
|
||||
Reference in new issue
Block a user