mirror of
https://github.com/1f349/violet.git
synced 2024-11-24 20:31:37 +00:00
19 lines
459 B
MySQL
19 lines
459 B
MySQL
|
CREATE TABLE IF NOT EXISTS routes
|
||
|
(
|
||
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||
|
source TEXT UNIQUE,
|
||
|
destination TEXT,
|
||
|
flags INTEGER DEFAULT 0,
|
||
|
active INTEGER DEFAULT 1
|
||
|
);
|
||
|
|
||
|
CREATE TABLE IF NOT EXISTS redirects
|
||
|
(
|
||
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||
|
source TEXT UNIQUE,
|
||
|
destination TEXT,
|
||
|
flags INTEGER DEFAULT 0,
|
||
|
code INTEGER DEFAULT 0,
|
||
|
active INTEGER DEFAULT 1
|
||
|
);
|