mirror of
https://github.com/MikroWizard/mikroman.git
synced 2025-07-02 10:04:30 +02:00
MikroWizard Initial commit | MikroMan Welcome to the world :)
This commit is contained in:
commit
8c49b9a55d
96 changed files with 12274 additions and 0 deletions
25
migrations/011_user_tasks.py
Normal file
25
migrations/011_user_tasks.py
Normal file
|
@ -0,0 +1,25 @@
|
|||
# 021_user_tasks.py
|
||||
|
||||
def migrate(migrator, database, fake=False, **kwargs):
|
||||
|
||||
|
||||
migrator.sql("""CREATE TABLE user_tasks(
|
||||
id serial PRIMARY KEY NOT NULL,
|
||||
name text,
|
||||
description text,
|
||||
dev_ids text,
|
||||
snippetid int,
|
||||
data text,
|
||||
cron text,
|
||||
action text,
|
||||
task_type text,
|
||||
selection_type text,
|
||||
desc_cron text,
|
||||
created timestamp not null default CURRENT_TIMESTAMP
|
||||
)""")
|
||||
|
||||
|
||||
def rollback(migrator, database, fake=False, **kwargs):
|
||||
|
||||
migrator.sql("""DROP TABLE user_tasks""")
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue