2
use ORLite::Migrate::Patch;
4
# remove the session table created in migrate-5
9
# create the new session table
11
CREATE TABLE session (
12
id INTEGER NOT NULL PRIMARY KEY,
13
name VARCHAR(255) UNIQUE NOT NULL,
14
description VARCHAR(255),
19
# create the table containing the session files
21
CREATE TABLE session_file (
22
id INTEGER NOT NULL PRIMARY KEY,
23
file VARCHAR(255) NOT NULL,
24
position INTEGER NOT NULL,
25
focus BOOLEAN NOT NULL,
26
session INTEGER NOT NULL,
27
FOREIGN KEY (session) REFERENCES session(id)