Split down patch-actor-table.sql
[lhc/web/wiklou.git] / maintenance / postgres / archives / patch-actor-table.sql
1 --
2 -- patch-actor-table.sql
3 --
4 -- T167246. Add an `actor` table.
5
6 CREATE SEQUENCE actor_actor_id_seq;
7 CREATE TABLE actor (
8 actor_id INTEGER NOT NULL PRIMARY KEY DEFAULT nextval('actor_actor_id_seq'),
9 actor_user INTEGER,
10 actor_name TEXT NOT NULL
11 );
12 CREATE UNIQUE INDEX actor_user ON actor (actor_user);
13 CREATE UNIQUE INDEX actor_name ON actor (actor_name);