2
0
Эх сурвалжийг харах

修改资源索引表名为res_indexs

visuddhinanda 4 жил өмнө
parent
commit
271803dadb

+ 1 - 1
app/config.sample.php

@@ -79,7 +79,7 @@ app/install/db_update_toc.php 刷库
 
 #pg
 define("_FILE_DB_RESRES_INDEX_", _DB_ENGIN_.":host="._DB_HOST_.";port="._DB_PORT_.";dbname="._DB_NAME_.";user="._DB_USERNAME_.";password="._DB_PASSWORD_.";");
-define("_TABLE_RES_INDEX_","res_index");
+define("_TABLE_RES_INDEX_","res_indexs");
 
 /*
 巴利语料段落表

+ 1 - 1
db/postgresql/migrations/2021-11-20-084233_res_index/down.sql

@@ -1,4 +1,4 @@
 -- This file should undo anything in `up.sql`
 DROP INDEX IF EXISTS res_index_title ;
 DROP INDEX IF EXISTS res_index_title_en ;
-DROP TABLE res_index ;
+DROP TABLE res_indexs ;

+ 3 - 3
db/postgresql/migrations/2021-11-20-084233_res_index/up.sql

@@ -1,6 +1,6 @@
 -- Your SQL goes here
 
-CREATE TABLE res_index 
+CREATE TABLE res_indexs
 (
 	id SERIAL PRIMARY KEY,
 	book INTEGER, 
@@ -23,5 +23,5 @@ CREATE TABLE res_index
 );
 
 
-CREATE INDEX res_index_title ON res_index (title);
-CREATE INDEX res_index_title_en ON res_index (title_en);
+CREATE INDEX res_index_title ON res_indexs (title);
+CREATE INDEX res_index_title_en ON res_indexs (title_en);