1
0
mirror of synced 2024-11-21 20:16:02 +03:00

add migrations

This commit is contained in:
DmitryZagorulko 2018-05-18 13:22:27 +03:00 committed by Alex Lushpai
parent acb2a62da5
commit 2bc0fb3049
7 changed files with 24 additions and 5 deletions

View File

@ -1 +1 @@
DROP TABLE connection; DROP TABLE connection;

View File

@ -12,4 +12,3 @@ create table connection
updated_at timestamp with time zone, updated_at timestamp with time zone,
active boolean active boolean
); );

View File

@ -11,4 +11,3 @@ create table bot
updated_at timestamp with time zone, updated_at timestamp with time zone,
active boolean active boolean
); );

View File

@ -1 +1 @@
DROP TABLE mapping; DROP TABLE mapping;

View File

@ -6,4 +6,3 @@ create table mapping
site_code text, site_code text,
bot_id text bot_id text
); );

View 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;

View 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);