mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-08 11:37:25 +00:00
Added isActive to materials table
This commit is contained in:
parent
a0f2fbb126
commit
96719308b3
4 changed files with 1263 additions and 0 deletions
1
src/app/db/migrations/0034_wandering_nick_fury.sql
Normal file
1
src/app/db/migrations/0034_wandering_nick_fury.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
ALTER TABLE "material" ADD COLUMN "is_active" boolean DEFAULT true NOT NULL;
|
||||
1253
src/app/db/migrations/meta/0034_snapshot.json
Normal file
1253
src/app/db/migrations/meta/0034_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -239,6 +239,13 @@
|
|||
"when": 1692011574566,
|
||||
"tag": "0033_overconfident_kat_farrell",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 34,
|
||||
"version": "5",
|
||||
"when": 1692012985856,
|
||||
"tag": "0034_wandering_nick_fury",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -6,6 +6,7 @@ import {
|
|||
real,
|
||||
pgEnum,
|
||||
json,
|
||||
boolean,
|
||||
} from "drizzle-orm/pg-core";
|
||||
|
||||
export const MaterialType: [string, ...string[]] = [
|
||||
|
|
@ -51,4 +52,5 @@ export const material = pgTable("material", {
|
|||
),
|
||||
link: text("link"),
|
||||
createdAt: timestamp("created_at").notNull().defaultNow(),
|
||||
isActive: boolean("is_active").notNull().default(true),
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue