first commit
This commit is contained in:
10
migrations/0001_add_table_test_counter.sql
Normal file
10
migrations/0001_add_table_test_counter.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
DROP TABLE IF EXISTS test_counter;
|
||||
CREATE TABLE "test_counter" (
|
||||
"id" integer NOT NULL PRIMARY KEY AUTOINCREMENT,
|
||||
"counter" integer NOT NULL
|
||||
);
|
||||
|
||||
INSERT INTO test_counter (
|
||||
id,
|
||||
counter
|
||||
) VALUES ( 0,0 );
|
||||
8
migrations/0002_tutorial_create_tables.sql
Normal file
8
migrations/0002_tutorial_create_tables.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
DROP TABLE IF EXISTS album;
|
||||
CREATE TABLE album (
|
||||
"id" integer NOT NULL PRIMARY KEY AUTOINCREMENT,
|
||||
title VARCHAR(128) NOT NULL,
|
||||
artist VARCHAR(255) NOT NULL,
|
||||
price DECIMAL(5,2) NOT NULL
|
||||
);
|
||||
|
||||
7
migrations/0003_tutorial_add_data.sql
Normal file
7
migrations/0003_tutorial_add_data.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
INSERT INTO album
|
||||
(title, artist, price)
|
||||
VALUES
|
||||
('Blue Train', 'John Coltrane', 56.99),
|
||||
('Giant Steps', 'John Coltrane', 63.99),
|
||||
('Jeru', 'Gerry Mulligan', 17.99),
|
||||
('Sarah Vaughan', 'Sarah Vaughan', 34.98);
|
||||
Reference in New Issue
Block a user