gina-sequelize 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "gina-sequelize",
3
3
  "main": "./dist/gina.js",
4
4
  "types": "./dist/gina.d.ts",
5
- "version": "0.0.7",
5
+ "version": "0.0.8",
6
6
  "description": "Gina is a tool to auto-generate and run migrations based on Sequelize ORM.",
7
7
  "scripts": {
8
8
  "eslint": "eslint .",
package/.env DELETED
@@ -1,5 +0,0 @@
1
- # Database
2
- DB_HOST="localhost"
3
- DB_NAME="database_name"
4
- DB_USERNAME="root"
5
- DB_PASSWORD="root"
File without changes
@@ -1,133 +0,0 @@
1
- import { QueryInterface } from 'sequelize';
2
-
3
- export const migration: Migration = {
4
- async up(queryInterface: QueryInterface) {
5
-
6
- await queryInterface.dropTable('acting_bodies');
7
-
8
- await queryInterface.dropTable('acting_regions');
9
-
10
- await queryInterface.dropTable('camera_tags');
11
-
12
- await queryInterface.dropTable('cameras');
13
-
14
- await queryInterface.dropTable('cameras_metadata');
15
-
16
- await queryInterface.dropTable('configuration');
17
-
18
- await queryInterface.dropTable('dashboard');
19
-
20
- await queryInterface.dropTable('dashboard_cameras');
21
-
22
- await queryInterface.dropTable('equipment');
23
-
24
- await queryInterface.dropTable('equipment_user');
25
-
26
- await queryInterface.dropTable('equipment_vehicle');
27
-
28
- await queryInterface.dropTable('group_camera');
29
-
30
- await queryInterface.dropTable('group_permissions');
31
-
32
- await queryInterface.dropTable('group_user');
33
-
34
- await queryInterface.dropTable('groups');
35
-
36
- await queryInterface.dropTable('installation_companies');
37
-
38
- await queryInterface.dropTable('occurrence_reports');
39
-
40
- await queryInterface.dropTable('occurrence_types');
41
-
42
- await queryInterface.dropTable('occurrence_vehicles');
43
-
44
- await queryInterface.dropTable('occurrences');
45
-
46
- await queryInterface.dropTable('password_resets');
47
-
48
- await queryInterface.dropTable('permission_level_user');
49
-
50
- await queryInterface.dropTable('permission_levels');
51
-
52
- await queryInterface.dropTable('permissions');
53
-
54
- await queryInterface.dropTable('roles');
55
-
56
- await queryInterface.dropTable('tabelo');
57
-
58
- await queryInterface.dropTable('tags');
59
-
60
- await queryInterface.dropTable('tokens');
61
-
62
- await queryInterface.dropTable('users');
63
-
64
- await queryInterface.dropTable('vehicles');
65
-
66
-
67
- },
68
-
69
- async down(queryInterface: QueryInterface) {
70
-
71
-
72
- await queryInterface.createTable('vehicles', {});
73
-
74
- await queryInterface.createTable('users', {});
75
-
76
- await queryInterface.createTable('tokens', {});
77
-
78
- await queryInterface.createTable('tags', {});
79
-
80
- await queryInterface.createTable('tabelo', {});
81
-
82
- await queryInterface.createTable('roles', {});
83
-
84
- await queryInterface.createTable('permissions', {});
85
-
86
- await queryInterface.createTable('permission_levels', {});
87
-
88
- await queryInterface.createTable('permission_level_user', {});
89
-
90
- await queryInterface.createTable('password_resets', {});
91
-
92
- await queryInterface.createTable('occurrences', {});
93
-
94
- await queryInterface.createTable('occurrence_vehicles', {});
95
-
96
- await queryInterface.createTable('occurrence_types', {});
97
-
98
- await queryInterface.createTable('occurrence_reports', {});
99
-
100
- await queryInterface.createTable('installation_companies', {});
101
-
102
- await queryInterface.createTable('groups', {});
103
-
104
- await queryInterface.createTable('group_user', {});
105
-
106
- await queryInterface.createTable('group_permissions', {});
107
-
108
- await queryInterface.createTable('group_camera', {});
109
-
110
- await queryInterface.createTable('equipment_vehicle', {});
111
-
112
- await queryInterface.createTable('equipment_user', {});
113
-
114
- await queryInterface.createTable('equipment', {});
115
-
116
- await queryInterface.createTable('dashboard_cameras', {});
117
-
118
- await queryInterface.createTable('dashboard', {});
119
-
120
- await queryInterface.createTable('configuration', {});
121
-
122
- await queryInterface.createTable('cameras_metadata', {});
123
-
124
- await queryInterface.createTable('cameras', {});
125
-
126
- await queryInterface.createTable('camera_tags', {});
127
-
128
- await queryInterface.createTable('acting_regions', {});
129
-
130
- await queryInterface.createTable('acting_bodies', {});
131
-
132
- }
133
- };
@@ -1,13 +0,0 @@
1
- import { QueryInterface } from 'sequelize';
2
-
3
- export const migration: Migration = {
4
- async up(queryInterface: QueryInterface) {
5
-
6
-
7
- },
8
-
9
- async down(queryInterface: QueryInterface) {
10
-
11
-
12
- }
13
- };
@@ -1,30 +0,0 @@
1
- import { QueryInterface, DataTypes } from 'sequelize';
2
-
3
- export const migration: Migration = {
4
- async up(queryInterface: QueryInterface) {
5
-
6
- await queryInterface.createTable('db_version', {
7
- id: {
8
- type: DataTypes.INTEGER,
9
- primaryKey: true,
10
- autoIncrement: true,
11
- },
12
- version: {
13
- type: DataTypes.STRING,
14
- allowNull: false,
15
- field: 'version'
16
- },
17
- createdAt: DataTypes.DATE,
18
- updatedAt: DataTypes.DATE,
19
- });
20
-
21
-
22
- },
23
-
24
- async down(queryInterface: QueryInterface) {
25
-
26
-
27
- await queryInterface.dropTable('db_version');
28
-
29
- }
30
- };
@@ -1,17 +0,0 @@
1
- import { QueryInterface } from 'sequelize';
2
-
3
- export const migration: Migration = {
4
- async up(queryInterface: QueryInterface) {
5
-
6
- await queryInterface.createTable('gina_version', {});
7
-
8
-
9
- },
10
-
11
- async down(queryInterface: QueryInterface) {
12
-
13
-
14
- await queryInterface.dropTable('gina_version');
15
-
16
- }
17
- };
@@ -1,17 +0,0 @@
1
- import { QueryInterface } from 'sequelize';
2
-
3
- export const migration: Migration = {
4
- async up(queryInterface: QueryInterface) {
5
-
6
- await queryInterface.createTable('gina_version', {});
7
-
8
-
9
- },
10
-
11
- async down(queryInterface: QueryInterface) {
12
-
13
-
14
- await queryInterface.dropTable('gina_version');
15
-
16
- }
17
- };
@@ -1,17 +0,0 @@
1
- import { QueryInterface } from 'sequelize';
2
-
3
- export const migration: Migration = {
4
- async up(queryInterface: QueryInterface) {
5
-
6
- await queryInterface.createTable('gina_version', {});
7
-
8
-
9
- },
10
-
11
- async down(queryInterface: QueryInterface) {
12
-
13
-
14
- await queryInterface.dropTable('gina_version');
15
-
16
- }
17
- };
@@ -1,17 +0,0 @@
1
- import { QueryInterface } from 'sequelize';
2
-
3
- export const migration: Migration = {
4
- async up(queryInterface: QueryInterface) {
5
-
6
- await queryInterface.createTable('gina_version', {});
7
-
8
-
9
- },
10
-
11
- async down(queryInterface: QueryInterface) {
12
-
13
-
14
- await queryInterface.dropTable('gina_version');
15
-
16
- }
17
- };
@@ -1,17 +0,0 @@
1
- import { QueryInterface } from 'sequelize';
2
-
3
- export const migration: Migration = {
4
- async up(queryInterface: QueryInterface) {
5
-
6
- await queryInterface.createTable('gina_version', {});
7
-
8
-
9
- },
10
-
11
- async down(queryInterface: QueryInterface) {
12
-
13
-
14
- await queryInterface.dropTable('gina_version');
15
-
16
- }
17
- };
@@ -1,17 +0,0 @@
1
- import { QueryInterface } from 'sequelize';
2
-
3
- export const migration: Migration = {
4
- async up(queryInterface: QueryInterface) {
5
-
6
- await queryInterface.createTable('gina_version', {});
7
-
8
-
9
- },
10
-
11
- async down(queryInterface: QueryInterface) {
12
-
13
-
14
- await queryInterface.dropTable('gina_version');
15
-
16
- }
17
- };
@@ -1,17 +0,0 @@
1
- import { QueryInterface } from 'sequelize';
2
-
3
- export const migration: Migration = {
4
- async up(queryInterface: QueryInterface) {
5
-
6
- await queryInterface.createTable('gina_version', {});
7
-
8
-
9
- },
10
-
11
- async down(queryInterface: QueryInterface) {
12
-
13
-
14
- await queryInterface.dropTable('gina_version');
15
-
16
- }
17
- };
@@ -1,17 +0,0 @@
1
- import { QueryInterface } from 'sequelize';
2
-
3
- export const migration: Migration = {
4
- async up(queryInterface: QueryInterface) {
5
-
6
- await queryInterface.createTable('gina_version', {});
7
-
8
-
9
- },
10
-
11
- async down(queryInterface: QueryInterface) {
12
-
13
-
14
- await queryInterface.dropTable('gina_version');
15
-
16
- }
17
- };
@@ -1,17 +0,0 @@
1
- import { QueryInterface } from 'sequelize';
2
-
3
- export const migration: Migration = {
4
- async up(queryInterface: QueryInterface) {
5
-
6
- await queryInterface.createTable('gina_version', {});
7
-
8
-
9
- },
10
-
11
- async down(queryInterface: QueryInterface) {
12
-
13
-
14
- await queryInterface.dropTable('gina_version');
15
-
16
- }
17
- };
@@ -1,17 +0,0 @@
1
- import { QueryInterface } from 'sequelize';
2
-
3
- export const migration: Migration = {
4
- async up(queryInterface: QueryInterface) {
5
-
6
- await queryInterface.createTable('gina_version', {});
7
-
8
-
9
- },
10
-
11
- async down(queryInterface: QueryInterface) {
12
-
13
-
14
- await queryInterface.dropTable('gina_version');
15
-
16
- }
17
- };
@@ -1,17 +0,0 @@
1
- import { QueryInterface } from 'sequelize';
2
-
3
- export const migration: Migration = {
4
- async up(queryInterface: QueryInterface) {
5
-
6
- await queryInterface.createTable('gina_version', {});
7
-
8
-
9
- },
10
-
11
- async down(queryInterface: QueryInterface) {
12
-
13
-
14
- await queryInterface.dropTable('gina_version');
15
-
16
- }
17
- };
@@ -1,17 +0,0 @@
1
- import { QueryInterface } from 'sequelize';
2
-
3
- export const migration: Migration = {
4
- async up(queryInterface: QueryInterface) {
5
-
6
- await queryInterface.createTable('gina_version', {});
7
-
8
-
9
- },
10
-
11
- async down(queryInterface: QueryInterface) {
12
-
13
-
14
- await queryInterface.dropTable('gina_version');
15
-
16
- }
17
- };
@@ -1,17 +0,0 @@
1
- import { QueryInterface } from 'sequelize';
2
-
3
- export const migration: Migration = {
4
- async up(queryInterface: QueryInterface) {
5
-
6
- await queryInterface.createTable('gina_version', {});
7
-
8
-
9
- },
10
-
11
- async down(queryInterface: QueryInterface) {
12
-
13
-
14
- await queryInterface.dropTable('gina_version');
15
-
16
- }
17
- };
@@ -1,17 +0,0 @@
1
- import { QueryInterface } from 'sequelize';
2
-
3
- export const migration: Migration = {
4
- async up(queryInterface: QueryInterface) {
5
-
6
- await queryInterface.createTable('gina_version', {});
7
-
8
-
9
- },
10
-
11
- async down(queryInterface: QueryInterface) {
12
-
13
-
14
- await queryInterface.dropTable('gina_version');
15
-
16
- }
17
- };