summaryrefslogtreecommitdiff
path: root/dichroism/migrations/2020-10-09-210205_photos
diff options
context:
space:
mode:
Diffstat (limited to 'dichroism/migrations/2020-10-09-210205_photos')
-rw-r--r--dichroism/migrations/2020-10-09-210205_photos/down.sql1
-rw-r--r--dichroism/migrations/2020-10-09-210205_photos/up.sql5
2 files changed, 6 insertions, 0 deletions
diff --git a/dichroism/migrations/2020-10-09-210205_photos/down.sql b/dichroism/migrations/2020-10-09-210205_photos/down.sql
new file mode 100644
index 0000000..1f9850a
--- /dev/null
+++ b/dichroism/migrations/2020-10-09-210205_photos/down.sql
@@ -0,0 +1 @@
+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
new file mode 100644
index 0000000..0e74ff9
--- /dev/null
+++ b/dichroism/migrations/2020-10-09-210205_photos/up.sql
@@ -0,0 +1,5 @@
+CREATE TABLE "photos" (
+ "id" INTEGER NOT NULL,
+ "path" TEXT NOT NULL UNIQUE,
+ PRIMARY KEY("id")
+)