mirror of https://github.com/usememos/memos
chore: update db initial
parent
0fea2a86da
commit
3c06c68691
@ -0,0 +1,4 @@
|
||||
DELETE FROM resource;
|
||||
DELETE FROM shortcut;
|
||||
DELETE FROM memo;
|
||||
DELETE FROM user;
|
@ -1,4 +0,0 @@
|
||||
DROP TABLE IF EXISTS `memo`;
|
||||
DROP TABLE IF EXISTS `shortcut`;
|
||||
DROP TABLE IF EXISTS `resource`;
|
||||
DROP TABLE IF EXISTS `user`;
|
@ -0,0 +1,15 @@
|
||||
INSERT INTO
|
||||
user (
|
||||
`id`,
|
||||
`name`,
|
||||
`open_id`,
|
||||
`password_hash`
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
101,
|
||||
'guest',
|
||||
'guest_open_id',
|
||||
-- "secret"
|
||||
'$2a$14$ajq8Q7fbtFRQvXpdCq7Jcuy.Rx1h/L4J60Otx.gyNLbAYctGMJ9tK'
|
||||
);
|
@ -0,0 +1,4 @@
|
||||
INSERT INTO memo
|
||||
(`content`, `creator_id`)
|
||||
VALUES
|
||||
('👋 Welcome to memos', 101);
|
Loading…
Reference in New Issue