Skip to content

Commit 66c7f37

Browse files
authored
Merge pull request #1532 from zfi/master
Merge branch 0.101 to master
2 parents 04a1274 + 1ebe310 commit 66c7f37

File tree

433 files changed

+1029
-64787
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

433 files changed

+1029
-64787
lines changed

db-updates/0000-admin.sql

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,15 @@ CREATE TABLE if not exists blocklyprop.admin (
2525
) ENGINE=InnoDB
2626
AUTO_INCREMENT=0
2727
DEFAULT CHARSET=utf8;
28+
29+
-- Record schema change
30+
INSERT INTO blocklyprop.admin (
31+
db_version,
32+
db_script,
33+
notes
34+
)
35+
VALUES (
36+
0,
37+
'0000-admin.sql',
38+
'Create administrative table to track updates'
39+
);

db-updates/0001-initial.sql

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,16 @@ CREATE TABLE IF NOT EXISTS blocklyprop.user (
9898
) ENGINE=InnoDB
9999
AUTO_INCREMENT=0
100100
DEFAULT CHARSET=utf8;
101+
102+
103+
-- Record schema change
104+
INSERT INTO blocklyprop.admin (
105+
db_version,
106+
db_script,
107+
notes
108+
)
109+
VALUES (
110+
1,
111+
'0001-initial.sql',
112+
'Create initial blocklyprop tables'
113+
);

db-updates/0002-add_share-key.sql

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,16 @@ CREATE TABLE IF NOT EXISTS blocklyprop.project_sharing (
1212
UNIQUE INDEX project_sharing_id_project_sharekey_uindex (id_project, sharekey),
1313
INDEX project_sharing_sharekey_index (sharekey)
1414
) ENGINE=InnoDB
15-
DEFAULT CHARSET=utf8;
15+
DEFAULT CHARSET=utf8;
16+
17+
-- Record schema change
18+
INSERT INTO blocklyprop.admin (
19+
db_version,
20+
db_script,
21+
notes
22+
)
23+
VALUES (
24+
2,
25+
'0002-add-share-key.sql',
26+
'Add project sharing support'
27+
);

db-updates/0003-rich-text-editor.sql

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,16 @@
22
* Add a description field to the project that supports HTML
33
*/
44
ALTER TABLE blocklyprop.project
5-
ADD description_html LONGTEXT NULL AFTER description;
5+
ADD description_html LONGTEXT NULL AFTER description;
6+
7+
-- Record schema change
8+
INSERT INTO blocklyprop.admin (
9+
db_version,
10+
db_script,
11+
notes
12+
)
13+
VALUES (
14+
3,
15+
'0003-rich-text-editor.sql',
16+
'Add HTML project description to project table'
17+
);

db-updates/0004-friends.sql

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,15 @@ CREATE TABLE IF NOT EXISTS blocklyprop.friend (
5454

5555
CREATE UNIQUE INDEX friend_idRequestUser_idRequestedUser_uindex
5656
ON blocklyprop.friend (idRequestUser, idRequestedUser);
57+
58+
-- Record schema change
59+
INSERT INTO blocklyprop.admin (
60+
db_version,
61+
db_script,
62+
notes
63+
)
64+
VALUES (
65+
4,
66+
'0004-friends.sql',
67+
'Implement friends feature for social media'
68+
);
Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
/*
2-
* Correct issue with project shaing id not incrementing
2+
* Correct issue with project sharing id not incrementing
33
*/
44

55
ALTER TABLE blocklyprop.project_sharing MODIFY id BIGINT(20) NOT NULL AUTO_INCREMENT;
66

7+
8+
-- Record schema change
9+
INSERT INTO blocklyprop.admin (
10+
db_version,
11+
db_script,
12+
notes
13+
)
14+
VALUES (
15+
5,
16+
'0005-fix_share-key_autoincrement.sql',
17+
'Correct issue with project sharing id not incrementing'
18+
);
19+
20+

db-updates/0008-update-bp-default-char-col.sql

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,3 +152,15 @@ ALTER TABLE blocklyprop.user MODIFY screenname VARCHAR(250) CHARACTER SET utf8;
152152

153153
SET foreign_key_checks = 1;
154154

155+
156+
-- Record schema change
157+
INSERT INTO blocklyprop.admin (
158+
db_version,
159+
db_script,
160+
notes
161+
)
162+
VALUES (
163+
8,
164+
'0008-update-bp-default-char-col.sql',
165+
'updates the character set and collation settings on the blocklyprop database'
166+
);

db-updates/0009-motd.sql

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,16 @@ CREATE TABLE IF NOT EXISTS blocklyprop.motd
1818
ENGINE=InnoDB
1919
AUTO_INCREMENT=0
2020
DEFAULT CHARSET=utf8;
21+
22+
23+
-- Record schema change
24+
INSERT INTO blocklyprop.admin (
25+
db_version,
26+
db_script,
27+
notes
28+
)
29+
VALUES (
30+
9,
31+
'0009-motd.sql',
32+
'Implement support for database-driven banner messages'
33+
);

db-updates/0010-project-link-active.sql

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,15 @@ ALTER TABLE blocklyprop.project_sharing ADD active BIT DEFAULT 0 NULL AFTER shar
2020
*/
2121
UPDATE blocklyprop.project_sharing
2222
SET active = true;
23+
24+
-- Record schema change
25+
INSERT INTO blocklyprop.admin (
26+
db_version,
27+
db_script,
28+
notes
29+
)
30+
VALUES (
31+
10,
32+
'0010-project-link-active',
33+
'Add field to support project link state'
34+
);

db-updates/0011-project-code-block-version.sql

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,15 @@
1515
*/
1616

1717
ALTER TABLE blocklyprop.project ADD code_block_version SMALLINT DEFAULT 0 NOT NULL AFTER code;
18+
19+
-- Record schema change
20+
INSERT INTO blocklyprop.admin (
21+
db_version,
22+
db_script,
23+
notes
24+
)
25+
VALUES (
26+
11,
27+
'0011-project-code-block-version',
28+
'Add field to support project code block versioning'
29+
);

0 commit comments

Comments
 (0)