SQL

CREATE TABLE `team_repo`  (
  `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
  `org_id` INTEGER NULL,
  `team_id` INTEGER NULL,
  `repo_id` INTEGER NULL
)

+ Add column

Columns

Column Data type Allow null Primary key Actions
id INTEGER Rename | Drop
org_id INTEGER Rename | Drop
team_id INTEGER Rename | Drop
repo_id INTEGER Rename | Drop

+ Add index

Indexes

Name Columns Unique SQL Drop?
IDX_team_repo_org_id org_id SQL
CREATE INDEX `IDX_team_repo_org_id`
ON `team_repo` (`org_id`)
Drop
UQE_team_repo_s
  • team_id
  • repo_id
SQL
CREATE UNIQUE INDEX `UQE_team_repo_s`
ON `team_repo` (`team_id`,`repo_id`)
Drop