History

Allow long definition names in cloud schema

Rhys Sullivan committed 5 months ago

Commit dd7aaf61 parent a30f26b4 files · +4 −4Browse files

Unified · Split

4 files
  1. apps/cloud/drizzle/0000_v2_baseline.sql +1 −1
  2. apps/cloud/drizzle/meta/0000_snapshot.json +1 −1
  3. apps/cloud/scripts/migrate-v1-v2.ts +1 −1
  4. apps/cloud/src/db/executor-schema.ts +1 −1
apps/cloud/drizzle/0000_v2_baseline.sql+1−1
@@ -49,7 +49,7 @@ CREATE TABLE "definition" ( · 48 unmodified lines
4949 "integration" varchar(255) NOT NULL,
5050 "connection" varchar(255) NOT NULL,
5151 "plugin_id" text NOT NULL,
52− "name" varchar(255) NOT NULL,
52+ "name" text NOT NULL,
5353 "schema" json NOT NULL,
5454 "created_at" timestamp NOT NULL,
5555 "row_id" varchar(255) PRIMARY KEY NOT NULL,
apps/cloud/drizzle/meta/0000_snapshot.json+1−1
@@ -189,7 +189,7 @@ · 188 unmodified lines
189189 },
190190 "name": {
191191 "name": "name",
192− "type": "varchar(255)",
192+ "type": "text",
193193 "primaryKey": false,
194194 "notNull": true
195195 },
apps/cloud/scripts/migrate-v1-v2.ts+1−1
@@ -807,7 +807,7 @@ const createV2Schema = async (sql: Pg): Promise<void> => { · 806 unmodified lines
807807 "integration" varchar(255) not null,
808808 "connection" varchar(255) not null,
809809 "plugin_id" text not null,
810− "name" varchar(255) not null,
810+ "name" text not null,
811811 "schema" json not null,
812812 "created_at" timestamp not null,
813813 "row_id" varchar(255) primary key not null,
apps/cloud/src/db/executor-schema.ts+1−1
@@ -154,7 +154,7 @@ export const definition = pgTable( · 153 unmodified lines
154154 integration: varchar("integration", { length: 255 }).notNull(),
155155 connection: varchar("connection", { length: 255 }).notNull(),
156156 plugin_id: text("plugin_id").notNull(),
157− name: varchar("name", { length: 255 }).notNull(),
157+ name: text("name").notNull(),
158158 schema: json("schema").notNull(),
159159 created_at: timestamp("created_at").notNull(),
160160 row_id: varchar("row_id", { length: 255 })