color api
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
-- +goose Up
|
||||
-- +goose StatementBegin
|
||||
CREATE TABLE color_preset
|
||||
(
|
||||
id INT NOT NULL AUTO_INCREMENT,
|
||||
hue DOUBLE NOT NULL,
|
||||
saturation DOUBLE NOT NULL,
|
||||
kelvin INT NOT NULL,
|
||||
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
-- +goose StatementEnd
|
||||
|
||||
-- +goose Down
|
||||
-- +goose StatementBegin
|
||||
DROP TABLE color_preset;
|
||||
-- +goose StatementEnd
|
||||
@@ -0,0 +1,11 @@
|
||||
-- +goose Up
|
||||
-- +goose StatementBegin
|
||||
ALTER TABLE color_preset
|
||||
ADD COLUMN name VARCHAR(255) NOT NULL DEFAULT 'Unnamed';
|
||||
-- +goose StatementEnd
|
||||
|
||||
-- +goose Down
|
||||
-- +goose StatementBegin
|
||||
ALTER TABLE color_preset
|
||||
DROP COLUMN name;
|
||||
-- +goose StatementEnd
|
||||
Reference in New Issue
Block a user