del front and add auth
This commit is contained in:
11
src/main/resources/db/changelog/add/011-add-name-user.yaml
Normal file
11
src/main/resources/db/changelog/add/011-add-name-user.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
databaseChangeLog:
|
||||
- changeSet:
|
||||
id: 011-add-name-column
|
||||
author: you
|
||||
changes:
|
||||
- addColumn:
|
||||
tableName: users
|
||||
columns:
|
||||
- column:
|
||||
name: name
|
||||
type: VARCHAR(255)
|
||||
10
src/main/resources/db/changelog/add/012-add-email-role.yaml
Normal file
10
src/main/resources/db/changelog/add/012-add-email-role.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
databaseChangeLog:
|
||||
- changeSet:
|
||||
id: 012-add-email-role
|
||||
author: you
|
||||
changes:
|
||||
- addColumn:
|
||||
tableName: users
|
||||
columns:
|
||||
- column: { name: role, type: VARCHAR(255) }
|
||||
- column: { name: email, type: VARCHAR(255) }
|
||||
10
src/main/resources/db/changelog/alter/010-alter-user.yaml
Normal file
10
src/main/resources/db/changelog/alter/010-alter-user.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
databaseChangeLog:
|
||||
- changeSet:
|
||||
id: 010-rename-email-to-login
|
||||
author: you
|
||||
changes:
|
||||
- renameColumn:
|
||||
tableName: users
|
||||
oldColumnName: email
|
||||
newColumnName: login
|
||||
columnDataType: VARCHAR(255)
|
||||
@@ -7,4 +7,7 @@ databaseChangeLog:
|
||||
- include: { file: db/changelog/constraint/006-fk-images-post-constraint.yaml }
|
||||
- include: { file: db/changelog/constraint/007-fk-post-user-constraint.yaml }
|
||||
- include: { file: db/changelog/constraint/008-fk-message-user.yaml }
|
||||
- include: { file: db/changelog/constraint/009-fk-favorite-user.yaml }
|
||||
- include: { file: db/changelog/constraint/009-fk-favorite-user.yaml }
|
||||
- include: { file: db/changelog/alter/010-alter-user.yaml }
|
||||
- include: { file: db/changelog/add/011-add-name-user.yaml }
|
||||
- include: { file: db/changelog/add/012-add-email-role.yaml}
|
||||
Reference in New Issue
Block a user