From eb9774cce502d167cdfdefece4d0ca0709a6e4de Mon Sep 17 00:00:00 2001 From: nochill Date: Mon, 9 Oct 2023 16:25:08 +0700 Subject: [PATCH] migration for users table --- db/migrations/000008_alter_users_add_about_column.down.sql | 1 + db/migrations/000008_alter_users_add_about_column.up.sql | 1 + db/migrations/000009_alter_users_add_website_column.down.sql | 1 + db/migrations/000009_alter_users_add_website_column.up.sql | 1 + 4 files changed, 4 insertions(+) create mode 100644 db/migrations/000008_alter_users_add_about_column.down.sql create mode 100644 db/migrations/000008_alter_users_add_about_column.up.sql create mode 100644 db/migrations/000009_alter_users_add_website_column.down.sql create mode 100644 db/migrations/000009_alter_users_add_website_column.up.sql diff --git a/db/migrations/000008_alter_users_add_about_column.down.sql b/db/migrations/000008_alter_users_add_about_column.down.sql new file mode 100644 index 0000000..8715dbb --- /dev/null +++ b/db/migrations/000008_alter_users_add_about_column.down.sql @@ -0,0 +1 @@ +ALTER TABLE users DROP COLUMN about; \ No newline at end of file diff --git a/db/migrations/000008_alter_users_add_about_column.up.sql b/db/migrations/000008_alter_users_add_about_column.up.sql new file mode 100644 index 0000000..56c2485 --- /dev/null +++ b/db/migrations/000008_alter_users_add_about_column.up.sql @@ -0,0 +1 @@ +ALTER TABLE users ADD COLUMN about text; \ No newline at end of file diff --git a/db/migrations/000009_alter_users_add_website_column.down.sql b/db/migrations/000009_alter_users_add_website_column.down.sql new file mode 100644 index 0000000..e725f63 --- /dev/null +++ b/db/migrations/000009_alter_users_add_website_column.down.sql @@ -0,0 +1 @@ +ALTER TABLE users DROP COLUMN IF EXISTS website; \ No newline at end of file diff --git a/db/migrations/000009_alter_users_add_website_column.up.sql b/db/migrations/000009_alter_users_add_website_column.up.sql new file mode 100644 index 0000000..168dbbc --- /dev/null +++ b/db/migrations/000009_alter_users_add_website_column.up.sql @@ -0,0 +1 @@ +ALTER TABLE users ADD COLUMN website varchar; \ No newline at end of file