Browse Source

table rename bookword->book_words

visuddhinanda 4 years ago
parent
commit
2a6035fcf4

+ 1 - 1
app/config.sample.php

@@ -107,7 +107,7 @@ define("_TABLE_PALI_BOOK_NAME_","books");
 
 //PostgreSQL
 define("_FILE_DB_BOOK_WORD_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
-define("_TABLE_BOOK_WORD_", "bookword");
+define("_TABLE_BOOK_WORD_", "book_words");
 
 /*
 单词索引

+ 1 - 1
db/postgresql/migrations/2021-11-20-091303_bookword/down.sql

@@ -1,3 +1,3 @@
 -- This file should undo anything in `up.sql`
 DROP INDEX IF EXISTS bookword_wordindex;
-DROP TABLE bookword;
+DROP TABLE book_words;

+ 2 - 2
db/postgresql/migrations/2021-11-20-091303_bookword/up.sql

@@ -1,6 +1,6 @@
 -- Your SQL goes here
 
-CREATE TABLE bookword 
+CREATE TABLE book_words
 (
 	id SERIAL PRIMARY KEY,
 	book INTEGER  NOT NULL, 
@@ -10,4 +10,4 @@ CREATE TABLE bookword
 );
 
 -- 索引:
-CREATE INDEX bookword_wordindex ON bookword (wordindex);
+CREATE INDEX bookword_wordindex ON book_words (wordindex);