Procházet zdrojové kódy

建立 table article_lists #443

visuddhinanda před 4 roky
rodič
revize
32561678dd

+ 3 - 0
db/migrations/2021-07-16-130715_collection_article_list/down.sql

@@ -0,0 +1,3 @@
+-- This file should undo anything in `up.sql`
+
+DROP TABLE collection_article_lists

+ 8 - 0
db/migrations/2021-07-16-130715_collection_article_list/up.sql

@@ -0,0 +1,8 @@
+-- article 关联表
+CREATE TABLE article_lists (
+    id SERIAL PRIMARY KEY,
+    collection_id    INTEGER NOT NULL ,
+    article_id    INTEGER  NOT NULL ,
+    created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
+);
+