Compare commits
11 Commits
wmill-scri
...
rf/snapsho
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b98110266d | ||
|
|
dcf4cd1b55 | ||
|
|
8cf6a81b40 | ||
|
|
5d09664bad | ||
|
|
8203026353 | ||
|
|
1d560445b4 | ||
|
|
5b4c1e8b63 | ||
|
|
3d0ec3acfa | ||
|
|
02b900b62a | ||
|
|
1f9fffc3d7 | ||
|
|
4a8de0f26c |
20
backend/.sqlx/query-384503b43aae4f1ff086d4f37ba338ffe6e32cae693828dfed1bcf0547ced330.json
generated
Normal file
20
backend/.sqlx/query-384503b43aae4f1ff086d4f37ba338ffe6e32cae693828dfed1bcf0547ced330.json
generated
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"db_name": "PostgreSQL",
|
||||
"query": "SELECT EXISTS(SELECT 1 FROM windmill_migrations WHERE name = 'snapshot')",
|
||||
"describe": {
|
||||
"columns": [
|
||||
{
|
||||
"ordinal": 0,
|
||||
"name": "exists",
|
||||
"type_info": "Bool"
|
||||
}
|
||||
],
|
||||
"parameters": {
|
||||
"Left": []
|
||||
},
|
||||
"nullable": [
|
||||
null
|
||||
]
|
||||
},
|
||||
"hash": "384503b43aae4f1ff086d4f37ba338ffe6e32cae693828dfed1bcf0547ced330"
|
||||
}
|
||||
12
backend/.sqlx/query-bc449c34a21c46b4946ffd657cc3190c9b99bcfe6012dccd83b5b20e620be4fb.json
generated
Normal file
12
backend/.sqlx/query-bc449c34a21c46b4946ffd657cc3190c9b99bcfe6012dccd83b5b20e620be4fb.json
generated
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"db_name": "PostgreSQL",
|
||||
"query": "INSERT INTO windmill_migrations (name) VALUES ('snapshot')",
|
||||
"describe": {
|
||||
"columns": [],
|
||||
"parameters": {
|
||||
"Left": []
|
||||
},
|
||||
"nullable": []
|
||||
},
|
||||
"hash": "bc449c34a21c46b4946ffd657cc3190c9b99bcfe6012dccd83b5b20e620be4fb"
|
||||
}
|
||||
26
backend/.sqlx/query-fb759b29b607a535fdc9752d9828659e96aa233a6192f450eb8fa9a521012c94.json
generated
Normal file
26
backend/.sqlx/query-fb759b29b607a535fdc9752d9828659e96aa233a6192f450eb8fa9a521012c94.json
generated
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"db_name": "PostgreSQL",
|
||||
"query": "\n SELECT\n EXISTS(SELECT 1 FROM _sqlx_migrations WHERE version = 20220123221901) as \"has_first_old!\",\n EXISTS(SELECT 1 FROM windmill_migrations WHERE name = 'v2_script_lock_index') as \"has_latest_old!\"\n ",
|
||||
"describe": {
|
||||
"columns": [
|
||||
{
|
||||
"ordinal": 0,
|
||||
"name": "has_first_old!",
|
||||
"type_info": "Bool"
|
||||
},
|
||||
{
|
||||
"ordinal": 1,
|
||||
"name": "has_latest_old!",
|
||||
"type_info": "Bool"
|
||||
}
|
||||
],
|
||||
"parameters": {
|
||||
"Left": []
|
||||
},
|
||||
"nullable": [
|
||||
null,
|
||||
null
|
||||
]
|
||||
},
|
||||
"hash": "fb759b29b607a535fdc9752d9828659e96aa233a6192f450eb8fa9a521012c94"
|
||||
}
|
||||
11
backend/.zed/settings.json
Normal file
11
backend/.zed/settings.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"lsp": {
|
||||
"rust-analyzer": {
|
||||
"initialization_options": {
|
||||
"cargo": {
|
||||
"features": "all"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,56 +0,0 @@
|
||||
DO
|
||||
$do$
|
||||
BEGIN
|
||||
|
||||
CREATE ROLE windmill_user;
|
||||
|
||||
EXCEPTION WHEN OTHERS THEN
|
||||
RAISE NOTICE 'error creating the windmill_user role: %', SQLERRM;
|
||||
END
|
||||
$do$;
|
||||
|
||||
DO
|
||||
$do$
|
||||
BEGIN
|
||||
|
||||
GRANT ALL
|
||||
ON ALL TABLES IN SCHEMA public
|
||||
TO windmill_user;
|
||||
|
||||
GRANT ALL PRIVILEGES
|
||||
ON ALL SEQUENCES IN SCHEMA public
|
||||
TO windmill_user;
|
||||
|
||||
ALTER DEFAULT PRIVILEGES
|
||||
IN SCHEMA public
|
||||
GRANT ALL ON TABLES TO windmill_user;
|
||||
|
||||
ALTER DEFAULT PRIVILEGES
|
||||
IN SCHEMA public
|
||||
GRANT ALL ON SEQUENCES TO windmill_user;
|
||||
|
||||
EXCEPTION WHEN OTHERS THEN
|
||||
RAISE NOTICE 'error granting proper permission to windmill_user: %', SQLERRM;
|
||||
END
|
||||
$do$;
|
||||
|
||||
DO
|
||||
$do$
|
||||
BEGIN
|
||||
|
||||
CREATE ROLE windmill_admin WITH BYPASSRLS;
|
||||
|
||||
EXCEPTION WHEN OTHERS THEN
|
||||
RAISE NOTICE 'error creating the windmill_admin role: %', SQLERRM;
|
||||
END
|
||||
$do$;
|
||||
|
||||
|
||||
DO
|
||||
$do$
|
||||
BEGIN
|
||||
GRANT windmill_user TO windmill_admin;
|
||||
EXCEPTION WHEN OTHERS THEN
|
||||
RAISE NOTICE 'error granting windmill_user to windmill_admin: %', SQLERRM;
|
||||
END
|
||||
$do$;
|
||||
6012
backend/migrations/20250902170241_snapshot.up.sql
Normal file
6012
backend/migrations/20250902170241_snapshot.up.sql
Normal file
File diff suppressed because it is too large
Load Diff
56
backend/migrations/old/20220123221901_migrate_root.up.sql
Normal file
56
backend/migrations/old/20220123221901_migrate_root.up.sql
Normal file
@@ -0,0 +1,56 @@
|
||||
DO
|
||||
$do$
|
||||
BEGIN
|
||||
|
||||
CREATE ROLE windmill_user;
|
||||
|
||||
EXCEPTION WHEN OTHERS THEN
|
||||
RAISE NOTICE 'error creating the windmill_user role: %', SQLERRM;
|
||||
END
|
||||
$do$;
|
||||
|
||||
DO
|
||||
$do$
|
||||
BEGIN
|
||||
|
||||
GRANT ALL
|
||||
ON ALL TABLES IN SCHEMA public
|
||||
TO windmill_user;
|
||||
|
||||
GRANT ALL PRIVILEGES
|
||||
ON ALL SEQUENCES IN SCHEMA public
|
||||
TO windmill_user;
|
||||
|
||||
ALTER DEFAULT PRIVILEGES
|
||||
IN SCHEMA public
|
||||
GRANT ALL ON TABLES TO windmill_user;
|
||||
|
||||
ALTER DEFAULT PRIVILEGES
|
||||
IN SCHEMA public
|
||||
GRANT ALL ON SEQUENCES TO windmill_user;
|
||||
|
||||
EXCEPTION WHEN OTHERS THEN
|
||||
RAISE NOTICE 'error granting proper permission to windmill_user: %', SQLERRM;
|
||||
END
|
||||
$do$;
|
||||
|
||||
DO
|
||||
$do$
|
||||
BEGIN
|
||||
|
||||
CREATE ROLE windmill_admin WITH BYPASSRLS;
|
||||
|
||||
EXCEPTION WHEN OTHERS THEN
|
||||
RAISE NOTICE 'error creating the windmill_admin role: %', SQLERRM;
|
||||
END
|
||||
$do$;
|
||||
|
||||
|
||||
DO
|
||||
$do$
|
||||
BEGIN
|
||||
GRANT windmill_user TO windmill_admin;
|
||||
EXCEPTION WHEN OTHERS THEN
|
||||
RAISE NOTICE 'error granting windmill_user to windmill_admin: %', SQLERRM;
|
||||
END
|
||||
$do$;
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user