소스 검색

句子库id 不使用自增主键

visuddhinanda 4 년 전
부모
커밋
d8cce3debf
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      db/postgresql/migrations/2021-11-28-010830_pali_sent/up.sql
  2. 1 1
      db/postgresql/migrations/2021-11-28-011002_pali_sent_org/up.sql

+ 1 - 1
db/postgresql/migrations/2021-11-28-010830_pali_sent/up.sql

@@ -1,6 +1,6 @@
 -- 表:pali_sent
 -- 表:pali_sent
 CREATE TABLE pali_sent (
 CREATE TABLE pali_sent (
-    id SERIAL PRIMARY KEY,
+    id INTEGER PRIMARY KEY,
     book      INTEGER,
     book      INTEGER,
     paragraph INTEGER,
     paragraph INTEGER,
     word_begin   INTEGER,
     word_begin   INTEGER,

+ 1 - 1
db/postgresql/migrations/2021-11-28-011002_pali_sent_org/up.sql

@@ -1,6 +1,6 @@
 -- 表:pali_sent
 -- 表:pali_sent
 CREATE TABLE pali_sent_org (
 CREATE TABLE pali_sent_org (
-    id SERIAL PRIMARY KEY,
+    id INTEGER PRIMARY KEY,
     book      INTEGER,
     book      INTEGER,
     paragraph INTEGER,
     paragraph INTEGER,
     word_begin   INTEGER,
     word_begin   INTEGER,