Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add sql migration comment
Browse files Browse the repository at this point in the history
daniel-codecov committed Feb 22, 2024
1 parent dfee68c commit 1d38f3c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions shared/django_apps/rollouts/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -12,6 +12,19 @@ class Migration(migrations.Migration):

dependencies = []

# BEGIN;
# --
# -- Create model FeatureFlag
# --
# CREATE TABLE "feature_flags" ("name" varchar(200) NOT NULL PRIMARY KEY, "proportion" decimal NOT NULL, "salt" varchar(32) NOT NULL);
# --
# -- Create model FeatureFlagVariant
# --
# CREATE TABLE "feature_flag_variants" ("name" varchar(200) NOT NULL PRIMARY KEY, "proportion" decimal NOT NULL, "value" text NOT NULL CHECK ((JSON_VALID("value") OR "value" IS NULL)), "override_owner_ids" integer[] NOT NULL, "override_repo_ids" integer[] NOT NULL, "feature_flag_id" varchar(200) NOT NULL REFERENCES "feature_flags" ("name") DEFERRABLE INITIALLY DEFERRED);
# CREATE INDEX "feature_flag_variants_feature_flag_id_fa3a4c02" ON "feature_flag_variants" ("feature_flag_id");
# CREATE INDEX "feature_fla_feature_15a078_idx" ON "feature_flag_variants" ("feature_flag_id");
# COMMIT;

operations = [
migrations.CreateModel(
name="FeatureFlag",

0 comments on commit 1d38f3c

Please sign in to comment.