Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Max/pk constraint #81

Merged
merged 2 commits into from
Jun 30, 2021
Merged

Max/pk constraint #81

merged 2 commits into from
Jun 30, 2021

Conversation

max-hoffman
Copy link

@max-hoffman max-hoffman commented Jun 23, 2021

sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (1105, "syntax error at position 205 near 'PRIMARY'")
[SQL:
CREATE TABLE experiments (
	experiment_id INTEGER NOT NULL AUTO_INCREMENT,
	name VARCHAR(256) NOT NULL,
	artifact_location VARCHAR(256),
	lifecycle_stage VARCHAR(32),
	CONSTRAINT experiment_pk PRIMARY KEY (experiment_id),
	CONSTRAINT experiments_lifecycle_stage CHECK (lifecycle_stage IN ('active', 'deleted')),
	UNIQUE (name)
)

Signed-off-by: Max Hoffman <max@dolthub.com>
Signed-off-by: Max Hoffman <max@dolthub.com>
@max-hoffman max-hoffman requested a review from zachmu as a code owner June 23, 2021 21:49
@max-hoffman max-hoffman merged commit 8b41176 into master Jun 30, 2021
@max-hoffman max-hoffman deleted the max/pk-constraint branch June 30, 2021 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant