extend user table
This commit is contained in:
parent
90379aa218
commit
18d7ae9ce7
5
migrations/2025-04-07-124248_extend_user_table/down.sql
Normal file
5
migrations/2025-04-07-124248_extend_user_table/down.sql
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
ALTER TABLE users
|
||||||
|
DROP COLUMN first_name,
|
||||||
|
DROP COLUMN last_name,
|
||||||
|
DROP COLUMN username,
|
||||||
|
DROP COLUMN language_code;
|
||||||
5
migrations/2025-04-07-124248_extend_user_table/up.sql
Normal file
5
migrations/2025-04-07-124248_extend_user_table/up.sql
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
ALTER TABLE users
|
||||||
|
ADD COLUMN first_name VARCHAR(255),
|
||||||
|
ADD COLUMN last_name VARCHAR(255),
|
||||||
|
ADD COLUMN username VARCHAR(255),
|
||||||
|
ADD COLUMN language_code VARCHAR(10);
|
||||||
@ -0,0 +1,6 @@
|
|||||||
|
-- This file should undo anything in `up.sql`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ALTER TABLE "users" ALTER COLUMN "first_name" DROP NOT NULL;
|
||||||
|
|
||||||
@ -0,0 +1,6 @@
|
|||||||
|
-- Your SQL goes here
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ALTER TABLE "users" ALTER COLUMN "first_name" SET NOT NULL;
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user