mirror of
https://github.com/drakkan/sftpgo.git
synced 2026-03-15 06:45:50 +01:00
added the "initprovider" command to initialize the database structure. If we change the database schema the required changes will be checked at startup and automatically applyed.
10 lines
No EOL
225 B
PL/PgSQL
10 lines
No EOL
225 B
PL/PgSQL
BEGIN;
|
|
--
|
|
-- Create model SchemaVersion
|
|
--
|
|
CREATE TABLE "schema_version" ("id" serial NOT NULL PRIMARY KEY, "version" integer NOT NULL);
|
|
---
|
|
--- Add initial version
|
|
---
|
|
INSERT INTO schema_version (version) VALUES (1);
|
|
COMMIT; |