mirror of
https://github.com/MikroWizard/mikroman.git
synced 2025-06-26 23:28:35 +02:00
18 lines
391 B
Python
18 lines
391 B
Python
|
# 027_permissions.py
|
||
|
|
||
|
def migrate(migrator, database, fake=False, **kwargs):
|
||
|
|
||
|
|
||
|
migrator.sql("""CREATE TABLE task_results(
|
||
|
id serial PRIMARY KEY NOT NULL,
|
||
|
task_type text,
|
||
|
result text,
|
||
|
created timestamp not null default CURRENT_TIMESTAMP
|
||
|
)""")
|
||
|
|
||
|
|
||
|
def rollback(migrator, database, fake=False, **kwargs):
|
||
|
|
||
|
migrator.sql("""DROP TABLE task_results""")
|
||
|
|