-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Add created_at, created_at to workspace_schedule and workspaces…
…_user (#418)
- Loading branch information
1 parent
21c3638
commit e9e5117
Showing
3 changed files
with
54 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Generated by Django 3.2.14 on 2024-12-23 11:02 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('workspaces', '0040_workspacegeneralsettings_memo_structure'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='workspaceschedule', | ||
name='created_at', | ||
field=models.DateTimeField(auto_now_add=True, help_text='Created at datetime', null=True), | ||
), | ||
migrations.AddField( | ||
model_name='workspaceschedule', | ||
name='updated_at', | ||
field=models.DateTimeField(auto_now=True, help_text='Updated at datetime', null=True), | ||
), | ||
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; | ||
""", | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters