From e5c72ca36861917289b554c579b2bd4e67432fda Mon Sep 17 00:00:00 2001 From: Ashutosh619-sudo Date: Mon, 23 Dec 2024 16:55:42 +0530 Subject: [PATCH] Feat: Add created_at, workspaces_user --- .../0007_add_created_at_to_user_sql.py | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 apps/workspaces/migrations/0007_add_created_at_to_user_sql.py diff --git a/apps/workspaces/migrations/0007_add_created_at_to_user_sql.py b/apps/workspaces/migrations/0007_add_created_at_to_user_sql.py new file mode 100644 index 0000000..40c9a2c --- /dev/null +++ b/apps/workspaces/migrations/0007_add_created_at_to_user_sql.py @@ -0,0 +1,23 @@ +# Generated by Django 4.1.2 on 2024-12-23 11:22 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('workspaces', '0006_importsetting_import_code_fields'), + ] + + operations = [ + migrations.RunSQL( + sql=""" + ALTER TABLE workspaces_user + ADD COLUMN created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(); + """, + reverse_sql=""" + ALTER TABLE workspaces_user + DROP COLUMN created_at; + """, + ), + ]