add migrations
This commit is contained in:
parent
acb2a62da5
commit
2bc0fb3049
@ -12,4 +12,3 @@ create table connection
|
|||||||
updated_at timestamp with time zone,
|
updated_at timestamp with time zone,
|
||||||
active boolean
|
active boolean
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -11,4 +11,3 @@ create table bot
|
|||||||
updated_at timestamp with time zone,
|
updated_at timestamp with time zone,
|
||||||
active boolean
|
active boolean
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -6,4 +6,3 @@ create table mapping
|
|||||||
site_code text,
|
site_code text,
|
||||||
bot_id text
|
bot_id text
|
||||||
);
|
);
|
||||||
|
|
||||||
|
11
migrations/1526636120_app.down.sql
Normal file
11
migrations/1526636120_app.down.sql
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
alter table connection
|
||||||
|
alter column client_id type text,
|
||||||
|
alter column api_key type text,
|
||||||
|
alter column api_url type text,
|
||||||
|
alter column mg_url type text,
|
||||||
|
alter column mg_token type text;
|
||||||
|
|
||||||
|
alter table bot
|
||||||
|
alter column client_id type text,
|
||||||
|
alter column name type text,
|
||||||
|
alter column token type text;
|
11
migrations/1526636120_app.up.sql
Normal file
11
migrations/1526636120_app.up.sql
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
alter table connection
|
||||||
|
alter column client_id type varchar(70),
|
||||||
|
alter column api_key type varchar(100),
|
||||||
|
alter column api_url type varchar(100),
|
||||||
|
alter column mg_url type varchar(100),
|
||||||
|
alter column mg_token type varchar(100);
|
||||||
|
|
||||||
|
alter table bot
|
||||||
|
alter column client_id type varchar(70),
|
||||||
|
alter column name type varchar(40),
|
||||||
|
alter column token type varchar(100);
|
Loading…
Reference in New Issue
Block a user