Browse Source

#3 修正

main
みてるぞ 4 months ago
parent
commit
e0f437f6db
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      migration.py

+ 2
- 1
migration.py View File

@@ -20,6 +20,7 @@ def main (
create_queries () create_queries ()
create_answers () create_answers ()
create_users () create_users ()
create_query_answer_histories ()




def create_queries ( def create_queries (
@@ -52,7 +53,7 @@ def create_users (
) -> None: ) -> None:
with SCHEMA.create ('users') as table: with SCHEMA.create ('users') as table:
table.big_increments ('id') table.big_increments ('id')
table.integet ('platform').comment ('プラットフォーム区分')
table.integer ('platform').comment ('プラットフォーム区分')
table.string ('code').comment ('ユーザ・コード(プラットフォーム依存)') table.string ('code').comment ('ユーザ・コード(プラットフォーム依存)')
table.string ('name').comment ('ユーザ名(プラットフォーム内)') table.string ('name').comment ('ユーザ名(プラットフォーム内)')
table.binary ('icon').nullable ().comment ('アイコン') table.binary ('icon').nullable ().comment ('アイコン')


Loading…
Cancel
Save