mirror of
https://github.com/flibusta-apps/users_settings_server.git
synced 2026-03-02 22:55:22 +01:00
10 lines
307 B
SQL
10 lines
307 B
SQL
-- Create languages table
|
|
CREATE TABLE IF NOT EXISTS languages (
|
|
id SERIAL PRIMARY KEY,
|
|
label VARCHAR(16) NOT NULL,
|
|
code VARCHAR(4) NOT NULL UNIQUE
|
|
);
|
|
|
|
-- Create unique index on code (if not exists from UNIQUE constraint)
|
|
CREATE UNIQUE INDEX IF NOT EXISTS languages_code_key ON languages(code);
|