Skip to content

Commit

Permalink
fix sql
Browse files Browse the repository at this point in the history
  • Loading branch information
zc2638 committed Dec 20, 2023
1 parent 5f8e6c1 commit f0a5c4a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
CREATE TABLE IF NOT EXISTS `labels`
(
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
`id` INTEGER AUTO_INCREMENT,
`namespace` VARCHAR(255) NOT NULL,
`name` VARCHAR(255) NOT NULL,
`kind` VARCHAR(255) NOT NULL,
`key` VARCHAR(255) NOT NULL,
`value` VARCHAR(255),

`created_at` DATETIME DEFAULT CURRENT_TIMESTAMP
);
`created_at` DATETIME DEFAULT CURRENT_TIMESTAMP,

PRIMARY KEY (`id`)
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4;
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
CREATE TABLE IF NOT EXISTS `labels`
(
`id` INTEGER AUTO_INCREMENT,
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
`namespace` VARCHAR(255) NOT NULL,
`name` VARCHAR(255) NOT NULL,
`kind` VARCHAR(255) NOT NULL,
`key` VARCHAR(255) NOT NULL,
`value` VARCHAR(255),

`created_at` DATETIME DEFAULT CURRENT_TIMESTAMP,

PRIMARY KEY (`id`)
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4;
`created_at` DATETIME DEFAULT CURRENT_TIMESTAMP
);

0 comments on commit f0a5c4a

Please sign in to comment.