Aravinth Manivannan
7fb29e0d7a
DESCRIPTION A repository might have several deployments. So unique repo_urls don't make any sense.
10 lines
395 B
SQL
10 lines
395 B
SQL
CREATE TABLE IF NOT EXISTS librepages_sites (
|
|
site_secret VARCHAR(32) NOT NULL UNIQUE,
|
|
repo_url VARCHAR(3000) NOT NULL,
|
|
branch TEXT NOT NULL,
|
|
hostname VARCHAR(3000) NOT NULL UNIQUE,
|
|
ID SERIAL PRIMARY KEY NOT NULL,
|
|
owned_by INTEGER NOT NULL references librepages_users(ID) ON DELETE CASCADE
|
|
);
|
|
|
|
CREATE UNIQUE INDEX librepages_sites_site_secret ON librepages_sites(site_secret);
|