SQL

CREATE TABLE `repo_unit`  (
  `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
  `repo_id` INTEGER NULL,
  `type` INTEGER NULL,
  `config` TEXT NULL,
  `created_unix` INTEGER NULL,
  `everyone_access_mode` INTEGER DEFAULT 0 NOT NULL,
  `anonymous_access_mode` INTEGER DEFAULT 0 NOT NULL
)

+ Add column

Columns

Column Data type Allow null Primary key Actions
id INTEGER Rename | Drop
repo_id INTEGER Rename | Drop
type INTEGER Rename | Drop
config TEXT Rename | Drop
created_unix INTEGER Rename | Drop
everyone_access_mode INTEGER Rename | Drop
anonymous_access_mode INTEGER Rename | Drop

+ Add index

Indexes

Name Columns Unique SQL Drop?
IDX_repo_unit_created_unix created_unix SQL
CREATE INDEX `IDX_repo_unit_created_unix`
ON `repo_unit` (`created_unix`)
Drop
IDX_repo_unit_s
  • repo_id
  • type
SQL
CREATE INDEX `IDX_repo_unit_s`
ON `repo_unit` (`repo_id`,`type`)
Drop