added drop database and fixed insert
This commit is contained in:
parent
ff690dc836
commit
e1a2cb8b1b
@ -1,3 +1,5 @@
|
||||
DROP DATABASE IF EXISTS Hobby;
|
||||
|
||||
create database Hobby;
|
||||
|
||||
use hobby;
|
||||
@ -27,6 +29,10 @@ create table users
|
||||
foreign key (Role) references roles (Role)
|
||||
);
|
||||
|
||||
INSERT INTO hobby.roles (Role, CreatedBy, CreatedDate) VALUES
|
||||
('Admin', 'Jacob', '2021-12-13 03:25:14'),
|
||||
('regular', 'Jacob', '2021-12-13 03:25:14');
|
||||
|
||||
|
||||
INSERT INTO hobby.users (UserName, Password, Role, IsActive, CreatedBy, CreatedDate, Email) VALUES
|
||||
('Colin ', 'Waffle', 'Admin', 1, 'Jacob', '2021-12-13 04:27:42', null),
|
||||
@ -36,11 +42,6 @@ INSERT INTO hobby.users (UserName, Password, Role, IsActive, CreatedBy, CreatedD
|
||||
('Rifat', '1234', 'Admin', 1, 'Jacob', '2021-12-13 04:29:55', null);
|
||||
|
||||
|
||||
INSERT INTO hobby.roles (Role, CreatedBy, CreatedDate) VALUES
|
||||
('Admin', 'Jacob', '2021-12-13 03:25:14'),
|
||||
('regular', 'Jacob', '2021-12-13 03:25:14');
|
||||
|
||||
|
||||
SET Global innodb_file_per_table=ON;
|
||||
|
||||
SET GLOBAL innodb_default_row_format='dynamic';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user