Skip to content

Commit

Permalink
feat: improve migrations structure and example
Browse files Browse the repository at this point in the history
Refs: #23
  • Loading branch information
tshemsedinov committed Sep 12, 2020
1 parent 424402c commit 6d84e1c
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
11 changes: 10 additions & 1 deletion test/schema/.database.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: 'example',
description: 'Example database schema',
version: 3,
driver: 'pg',

authors: [
{ name: 'Timur Shemsedinov', email: 'timur.shemsedinov@gmail.com' },
Expand All @@ -12,5 +13,13 @@
'postgis',
'postgis_topology',
'pg_trgm',
]
],

connection: {
host: '127.0.0.1',
port: 5432,
database: 'application',
user: 'postgres',
password: 'postgres',
},
});
11 changes: 10 additions & 1 deletion test/schema/.history/2020-09-11-v1/.database.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: 'example',
description: 'Example database schema',
version: 1,
driver: 'pg',

authors: [
{ name: 'Timur Shemsedinov', email: 'timur.shemsedinov@gmail.com' },
Expand All @@ -10,5 +11,13 @@
extensions: [
'hstore',
'pg_trgm',
]
],

connection: {
host: '127.0.0.1',
port: 5432,
database: 'application',
user: 'postgres',
password: 'postgres',
},
});
11 changes: 10 additions & 1 deletion test/schema/.history/2020-09-11-v2/.database.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: 'example',
description: 'Example database schema',
version: 2,
driver: 'pg',

authors: [
{ name: 'Timur Shemsedinov', email: 'timur.shemsedinov@gmail.com' },
Expand All @@ -10,5 +11,13 @@
extensions: [
'hstore',
'pg_trgm',
]
],

connection: {
host: '127.0.0.1',
port: 5432,
database: 'application',
user: 'postgres',
password: 'postgres',
},
});

0 comments on commit 6d84e1c

Please sign in to comment.