diff options
Diffstat (limited to 'dichroism/migrations')
-rw-r--r-- | dichroism/migrations/.gitkeep | 0 | ||||
-rw-r--r-- | dichroism/migrations/2020-10-09-210205_photos/down.sql | 1 | ||||
-rw-r--r-- | dichroism/migrations/2020-10-09-210205_photos/up.sql | 5 | ||||
-rw-r--r-- | dichroism/migrations/2020-10-09-210247_photo_sets/up.sql | 12 | ||||
-rw-r--r-- | dichroism/migrations/2020-10-23-010629_photo_sets/down.sql (renamed from dichroism/migrations/2020-10-09-210247_photo_sets/down.sql) | 0 | ||||
-rw-r--r-- | dichroism/migrations/2020-10-23-010629_photo_sets/up.sql | 8 | ||||
-rw-r--r-- | dichroism/migrations/2020-10-23-010929_products/down.sql (renamed from dichroism/migrations/2020-10-21-221149_products/down.sql) | 0 | ||||
-rw-r--r-- | dichroism/migrations/2020-10-23-010929_products/up.sql (renamed from dichroism/migrations/2020-10-21-221149_products/up.sql) | 0 |
8 files changed, 8 insertions, 18 deletions
diff --git a/dichroism/migrations/.gitkeep b/dichroism/migrations/.gitkeep deleted file mode 100644 index e69de29..0000000 --- a/dichroism/migrations/.gitkeep +++ /dev/null diff --git a/dichroism/migrations/2020-10-09-210205_photos/down.sql b/dichroism/migrations/2020-10-09-210205_photos/down.sql deleted file mode 100644 index 1f9850a..0000000 --- a/dichroism/migrations/2020-10-09-210205_photos/down.sql +++ /dev/null @@ -1 +0,0 @@ -DROP TABLE "photos" diff --git a/dichroism/migrations/2020-10-09-210205_photos/up.sql b/dichroism/migrations/2020-10-09-210205_photos/up.sql deleted file mode 100644 index 0e74ff9..0000000 --- a/dichroism/migrations/2020-10-09-210205_photos/up.sql +++ /dev/null @@ -1,5 +0,0 @@ -CREATE TABLE "photos" ( - "id" INTEGER NOT NULL, - "path" TEXT NOT NULL UNIQUE, - PRIMARY KEY("id") -) diff --git a/dichroism/migrations/2020-10-09-210247_photo_sets/up.sql b/dichroism/migrations/2020-10-09-210247_photo_sets/up.sql deleted file mode 100644 index 98e6050..0000000 --- a/dichroism/migrations/2020-10-09-210247_photo_sets/up.sql +++ /dev/null @@ -1,12 +0,0 @@ -CREATE TABLE "photo_sets" ( - "id" INTEGER NOT NULL, - "base" INTEGER NOT NULL, - "fullsize" INTEGER NOT NULL, - "thumbnail" INTEGER NOT NULL, - "original" INTEGER NOT NULL, - FOREIGN KEY("thumbnail") REFERENCES "photos"("id"), - FOREIGN KEY("original") REFERENCES "photos"("id"), - FOREIGN KEY("base") REFERENCES "photos"("id"), - FOREIGN KEY("fullsize") REFERENCES "photos"("id"), - PRIMARY KEY("id") -) diff --git a/dichroism/migrations/2020-10-09-210247_photo_sets/down.sql b/dichroism/migrations/2020-10-23-010629_photo_sets/down.sql index d02736a..d02736a 100644 --- a/dichroism/migrations/2020-10-09-210247_photo_sets/down.sql +++ b/dichroism/migrations/2020-10-23-010629_photo_sets/down.sql diff --git a/dichroism/migrations/2020-10-23-010629_photo_sets/up.sql b/dichroism/migrations/2020-10-23-010629_photo_sets/up.sql new file mode 100644 index 0000000..ed10670 --- /dev/null +++ b/dichroism/migrations/2020-10-23-010629_photo_sets/up.sql @@ -0,0 +1,8 @@ +CREATE TABLE "photo_sets" ( + "id" INTEGER NOT NULL, + "base" TEXT NOT NULL, + "fullsize" TEXT NOT NULL, + "thumbnail" TEXT NOT NULL, + "original" TEXT NOT NULL, + PRIMARY KEY("id") +) diff --git a/dichroism/migrations/2020-10-21-221149_products/down.sql b/dichroism/migrations/2020-10-23-010929_products/down.sql index f800c5c..f800c5c 100644 --- a/dichroism/migrations/2020-10-21-221149_products/down.sql +++ b/dichroism/migrations/2020-10-23-010929_products/down.sql diff --git a/dichroism/migrations/2020-10-21-221149_products/up.sql b/dichroism/migrations/2020-10-23-010929_products/up.sql index 9e9c696..9e9c696 100644 --- a/dichroism/migrations/2020-10-21-221149_products/up.sql +++ b/dichroism/migrations/2020-10-23-010929_products/up.sql |