Create a table with an ID as PRIMARY, BIGINT(20), NOT NULL, AUTO_INCREMENT

db:create_table($table_name)

db:create_table('rate_limit')
#=> [
#=>     "row_count" => 0,
#=>     "column_count" => 0,
#=>     "columns" => [],
#=>     "rows" => [],
#=>     "sql_state" => "00000",
#=>     "sql_query" => "CREATE TABLE rate_limit (\n            id BIGINT(20) unsigned NOT NULL AUTO_INCREMENT,\n            PRIMARY KEY (id)\n        )",
#=>     "ok?" => TRUE,
#=>     "execution_time" => 0.005173,
#=>     "last_insert_id" => "0"
#=> ]

Copyright ©2013-2022 SunSed®. All rights reserved.