Explorar o código

table rename progress_chapter->progress_chapters

visuddhinanda %!s(int64=4) %!d(string=hai) anos
pai
achega
98e2dbb87d

+ 1 - 1
db/postgresql/migrations/2021-11-28-011747_progress_chapter/down.sql

@@ -1 +1 @@
-DROP TABLE progress_chapter ;
+DROP TABLE progress_chapters ;

+ 3 - 1
db/postgresql/migrations/2021-11-28-011747_progress_chapter/up.sql

@@ -1,6 +1,6 @@
 
 
 -- 表:progress_chapter
 -- 表:progress_chapter
-CREATE TABLE progress_chapter 
+CREATE TABLE progress_chapters
 (
 (
 	id SERIAL PRIMARY KEY,
 	id SERIAL PRIMARY KEY,
 	book INTEGER, 
 	book INTEGER, 
@@ -11,3 +11,5 @@ CREATE TABLE progress_chapter
 	created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
 	created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
 );
 );
 
 
+CREATE INDEX progress_chapters_book_para ON progress_chapters (book,para);
+CREATE INDEX progress_chapters_book_para_lang ON progress_chapters (book,para,lang);