14 lines
461 B
MySQL
14 lines
461 B
MySQL
|
CREATE TABLE IF NOT EXISTS Labels (
|
||
|
id INTEGER AUTO_INCREMENT PRIMARY KEY,
|
||
|
account_id INTEGER NOT NULL,
|
||
|
color_fg TEXT NOT NULL,
|
||
|
color_bg TEXT NOT NULL,
|
||
|
title TEXT NOT NULL,
|
||
|
description TEXT,
|
||
|
custom_id TEXT,
|
||
|
custom_hash TEXT,
|
||
|
|
||
|
FOREIGN KEY (account_id) REFERENCES Accounts (id)
|
||
|
);
|
||
|
-- !
|
||
|
UPDATE Information SET inf_value = '8' WHERE inf_key = 'schema_version';
|