schema: add unique constraint on access_key

This commit is contained in:
Andrew Dolgov 2011-04-20 16:17:57 +04:00
parent bcce39e3d8
commit 1eb3012f82
4 changed files with 4 additions and 4 deletions

View File

@ -432,7 +432,7 @@ create table ttrss_linked_instances (id integer not null primary key auto_increm
last_connected datetime not null, last_connected datetime not null,
last_status_in integer not null, last_status_in integer not null,
last_status_out integer not null, last_status_out integer not null,
access_key varchar(250) not null, access_key varchar(250) not null unique,
access_url text not null) TYPE=InnoDB DEFAULT CHARSET=UTF8; access_url text not null) TYPE=InnoDB DEFAULT CHARSET=UTF8;
create table ttrss_linked_feeds ( create table ttrss_linked_feeds (

View File

@ -392,7 +392,7 @@ create table ttrss_linked_instances (id serial not null primary key,
last_connected timestamp not null, last_connected timestamp not null,
last_status_in integer not null, last_status_in integer not null,
last_status_out integer not null, last_status_out integer not null,
access_key varchar(250) not null, access_key varchar(250) not null unique,
access_url text not null); access_url text not null);
create table ttrss_linked_feeds ( create table ttrss_linked_feeds (

View File

@ -4,7 +4,7 @@ create table ttrss_linked_instances (id integer not null primary key auto_increm
last_connected timestamp not null, last_connected timestamp not null,
last_status_in integer not null, last_status_in integer not null,
last_status_out integer not null, last_status_out integer not null,
access_key varchar(250) not null, access_key varchar(250) not null unique,
access_url text not null) TYPE=InnoDB DEFAULT CHARSET=UTF8; access_url text not null) TYPE=InnoDB DEFAULT CHARSET=UTF8;
create table ttrss_linked_feeds ( create table ttrss_linked_feeds (

View File

@ -4,7 +4,7 @@ create table ttrss_linked_instances (id serial not null primary key,
last_connected timestamp not null, last_connected timestamp not null,
last_status_in integer not null, last_status_in integer not null,
last_status_out integer not null, last_status_out integer not null,
access_key varchar(250) not null, access_key varchar(250) not null unique,
access_url text not null); access_url text not null);
create table ttrss_linked_feeds ( create table ttrss_linked_feeds (