Skip to content

Commit

Permalink
馃嵄 set permissions for script_mgiration table
Browse files Browse the repository at this point in the history
  • Loading branch information
Odonno committed Jul 6, 2023
1 parent 7a52c23 commit 3483b37
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion templates/blog/schemas/script_migration.surql
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
DEFINE TABLE script_migration SCHEMAFULL;
DEFINE TABLE script_migration SCHEMAFULL
PERMISSIONS
FOR select FULL
FOR create, update, delete NONE;

DEFINE FIELD script_name ON script_migration TYPE string;
DEFINE FIELD executed_at ON script_migration TYPE datetime VALUE $before OR time::now();
5 changes: 4 additions & 1 deletion templates/ecommerce/schemas/script_migration.surql
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
DEFINE TABLE script_migration SCHEMAFULL;
DEFINE TABLE script_migration SCHEMAFULL
PERMISSIONS
FOR select FULL
FOR create, update, delete NONE;

DEFINE FIELD script_name ON script_migration TYPE string;
DEFINE FIELD executed_at ON script_migration TYPE datetime VALUE $before OR time::now();
5 changes: 4 additions & 1 deletion templates/empty/schemas/script_migration.surql
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
DEFINE TABLE script_migration SCHEMAFULL;
DEFINE TABLE script_migration SCHEMAFULL
PERMISSIONS
FOR select FULL
FOR create, update, delete NONE;

DEFINE FIELD script_name ON script_migration TYPE string;
DEFINE FIELD executed_at ON script_migration TYPE datetime VALUE $before OR time::now();

0 comments on commit 3483b37

Please sign in to comment.