diff options
Diffstat (limited to 'dichroism/migrations')
-rw-r--r-- | dichroism/migrations/.gitkeep | 0 | ||||
-rw-r--r-- | dichroism/migrations/2020-10-04-235458_create_images/down.sql | 1 | ||||
-rw-r--r-- | dichroism/migrations/2020-10-04-235458_create_images/up.sql | 5 |
3 files changed, 6 insertions, 0 deletions
diff --git a/dichroism/migrations/.gitkeep b/dichroism/migrations/.gitkeep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/dichroism/migrations/.gitkeep diff --git a/dichroism/migrations/2020-10-04-235458_create_images/down.sql b/dichroism/migrations/2020-10-04-235458_create_images/down.sql new file mode 100644 index 0000000..bc3690f --- /dev/null +++ b/dichroism/migrations/2020-10-04-235458_create_images/down.sql @@ -0,0 +1 @@ +DROP TABLE "images" diff --git a/dichroism/migrations/2020-10-04-235458_create_images/up.sql b/dichroism/migrations/2020-10-04-235458_create_images/up.sql new file mode 100644 index 0000000..7e92e57 --- /dev/null +++ b/dichroism/migrations/2020-10-04-235458_create_images/up.sql @@ -0,0 +1,5 @@ +CREATE TABLE "images" ( + "id" INTEGER NOT NULL, + "path" TEXT NOT NULL, + PRIMARY KEY("id") +) |