lootaherra tuotanto identifier
This commit is contained in:
2
.env
2
.env
@@ -1 +1 @@
|
||||
DATABASE_URL=postgres://postgres:postgres@localhost:6666/lootakalenteri
|
||||
DATABASE_URL=postgres://postgres:postgres@localhost:5432/lootakalenteri
|
||||
|
||||
@@ -6,4 +6,4 @@ file = "src/schema.rs"
|
||||
custom_type_derives = ["diesel::query_builder::QueryId", "Clone"]
|
||||
|
||||
[migrations_directory]
|
||||
dir = "<koodi kansion koko polku>/lootakalenteri-backend/migrations"
|
||||
dir = "/var/www/lootakalenteri-backend/migrations"
|
||||
|
||||
3
migrations/2025-06-29-125722_admin/down.sql
Normal file
3
migrations/2025-06-29-125722_admin/down.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
-- This file should undo anything in `up.sql`
|
||||
delete from loota_admin;
|
||||
|
||||
5
migrations/2025-06-29-125722_admin/up.sql
Normal file
5
migrations/2025-06-29-125722_admin/up.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
-- Your SQL goes here
|
||||
delete from loota_admin;
|
||||
insert into loota_admin (identifier) values ( 'nfBa32sd521');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user