leftover schema change for sql, adding dirty bits for trash and publishing

This commit is contained in:
Andrew Davidson 2016-01-16 16:44:47 -05:00
parent 3004e5e326
commit 8fafc77cae

View file

@ -26,6 +26,8 @@ CREATE TABLE "posts" (
"slug" TEXT NOT NULL, -- A slug form of the title or id
"markdown" TEXT NOT NULL, -- The post content in markdown format
"postDate" INTEGER, -- The date that the post should go live and be sorted by
"deleted" INTEGER DEFAULT 0, -- Whether or not the post is "Deleted"
"published" INTEGER DEFAULT 0, -- Whether or not the post has been published
"updatedDate" INTEGER, -- The date that the post was last updated
"createDate" INTEGER NOT NULL, -- The date the post was created
"lastGenerateDate" INTEGER, -- The date this post was last built
@ -39,6 +41,8 @@ CREATE TABLE "galleries" (
"title" TEXT, -- The title of the gallery
"slug" TEXT NOT NULL UNIQUE, -- A slug form of the title or id
"description" TEXT NOT NULL, -- The gallery description in markdown format
"deleted" INTEGER DEFAULT 0, -- Whether or not the gallery has been deleted
"published" INTEGER DEFAULT 0, -- Whether or not the gallery has been published
"postDate" INTEGER, -- The date that the gallery should go live and be sorted by
"updatedDate" INTEGER, -- The date that the gallery was last updated
"createDate" INTEGER NOT NULL, -- The date the gallery was created
@ -54,6 +58,8 @@ CREATE TABLE "photos" (
"title" TEXT, -- The title of the photo
"slug" TEXT NOT NULL UNIQUE, -- A slug form of the title or id
"description" TEXT, -- The photo description in markdown format
"published" INTEGER DEFAULT 0, -- Whether or not the photo has been published
"deleted" INTEGER DEFAULT 0, -- Whether or not the photo has been deleted
"photoDate" INTEGER, -- The date that the photo should go live and be sorted by
"updatedDate" INTEGER, -- The date that the photo was last updated
"createDate" INTEGER NOT NULL, -- The date the photo was created