mirror of
https://github.com/mattermost/focalboard.git
synced 2025-02-07 19:30:18 +02:00
parent
199da41f6d
commit
3be03f0cd0
@ -672,12 +672,12 @@ func _000015_blocks_history_no_nullsDownSql() (*asset, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
info := bindataFileInfo{name: "000015_blocks_history_no_nulls.down.sql", size: 214, mode: os.FileMode(436), modTime: time.Unix(1638547648, 0)}
|
||||
info := bindataFileInfo{name: "000015_blocks_history_no_nulls.down.sql", size: 214, mode: os.FileMode(436), modTime: time.Unix(1638768950, 0)}
|
||||
a := &asset{bytes: bytes, info: info}
|
||||
return a, nil
|
||||
}
|
||||
|
||||
var __000015_blocks_history_no_nullsUpSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xe4\x95\xcf\x8b\x9b\x40\x14\xc7\xcf\x33\x7f\xc5\xbb\xb9\x09\x25\x21\x7b\xdc\xd2\x83\x35\x53\x5a\xb0\xb1\xa8\xa1\xf4\x24\x1a\x27\x75\x5a\xa3\xe2\x4c\xa1\x22\xfe\xef\x65\xc6\xdf\x0b\x6e\x12\xe3\xad\xd7\xf5\x7d\x3f\xc3\xf7\xc3\x7b\x9b\xed\x1a\x32\x3f\xa7\x89\xf0\x58\x08\xeb\x2d\x3e\x7e\xdb\xeb\x2e\x81\xb2\xdc\x64\x39\x3d\xb3\xbf\x55\x15\xc4\xe9\xe9\x37\xf7\x22\xc6\x45\x9a\x17\xa0\x3b\x10\x44\x3b\x8c\x1c\xe2\x0e\x92\x1f\xc0\xb0\x74\x93\x38\x06\x79\xc2\x08\x3d\x39\xc4\x24\x86\x0b\x41\xf4\xbc\xe9\x67\x30\x42\x9f\x6c\xeb\xeb\x35\xf6\x33\x46\xe8\xfb\x67\x62\x13\xf9\xce\x46\xb1\x25\x87\x85\xa0\x1f\xf6\xaf\x90\x5f\x1c\x38\x58\x2e\x1c\x8e\xa6\x29\xf1\x96\xbd\x27\x36\x7c\xfc\x51\x07\x12\x4e\x73\xe1\xf9\x02\x74\xc7\x80\x98\x5d\x98\x80\xdd\x0a\x30\x7a\x07\x9a\xb6\xc2\xf5\x13\x63\xd4\xd1\x34\xdf\x63\xbc\x5d\x03\x3f\x45\xf4\xe2\xdf\xed\xa3\x89\x4d\xcb\x68\x06\x16\x33\xd1\xf0\x66\x6a\xd8\xb5\x16\x06\x98\x4e\x81\x28\x32\x7a\xb7\x00\x15\x9a\xae\xaf\x3e\x2f\x56\x5e\xd1\x1e\xde\x80\x8e\xd2\x37\x67\x22\x9e\x51\x5d\xa5\xde\xe8\xae\xbe\x2f\x57\x5e\xe1\x1e\x6f\xdf\x61\xba\xfa\x67\x46\xe3\x90\xcb\xfe\x65\xc9\xce\xb0\xc9\x52\x2e\x7e\xe6\x94\x57\x15\x46\x37\x1b\x51\x4a\x1a\xd2\xd8\xc9\x48\x4a\x33\x21\xff\x7c\xab\x96\x2b\x5e\x1a\xe2\x2b\x31\x37\x9a\x91\x6a\xca\x4a\x7b\x79\xf9\xc5\xd3\x64\x85\x9b\xa7\x06\x48\x25\xa9\x2c\x69\xcc\xe9\x7f\xa2\x43\x7b\x4b\x43\x12\x56\x95\xda\x99\x53\x4e\x7d\x41\x25\xe2\xde\xb3\xe9\x93\xd3\xa7\xd3\xcf\x2c\x76\x3e\x3d\x72\xe6\x09\x49\xf0\x9f\x2c\xac\x21\xed\x35\x8d\xa9\xdd\x45\xe5\x69\x3a\xeb\xe7\xb5\xcd\x4d\x9b\x69\x27\x16\xf3\xd2\x02\x1f\xfe\xc7\x32\x04\x75\x22\x6a\x3f\xa1\x17\x14\x33\xf7\x44\x45\xaf\x2d\x8a\x1a\x5a\x78\x53\x14\x73\xae\x14\x5e\x70\x41\x2f\xda\x78\x4b\x3a\xa2\xb4\xf3\x2f\x00\x00\xff\xff\xed\xe4\xf8\x56\x86\x09\x00\x00")
|
||||
var __000015_blocks_history_no_nullsUpSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xe4\x96\x4b\x8f\xda\x30\x10\xc7\xcf\xf6\xa7\xf0\x2d\x0b\xaa\xa0\xec\x71\x2b\x0e\x29\xb8\x6a\x25\xba\x54\x84\x55\xd5\x13\x02\x62\x8a\xdb\x40\xd2\xd8\x95\x1a\x45\xf9\xee\xd5\x38\xce\xc3\x61\x79\xc4\xe4\xb6\xd7\x89\xe7\x6f\xcf\x2f\xf3\x4a\x53\xbe\x23\x83\x43\x22\xfe\x04\x59\x86\xf1\xcb\xb7\xa9\xbb\xa4\x24\x4d\x07\x51\xcc\x76\xfc\x5f\x96\x6d\x82\x70\xfb\x5b\xac\xf6\x5c\xc8\x30\x4e\x88\xeb\x91\xcd\x9e\x78\x74\x49\x36\xfb\x41\xb4\x8e\xd9\x51\xae\xb8\x3f\x76\x1c\xf2\xfd\x33\x5d\x50\xc3\x4a\xbe\x78\xe4\xf9\x65\x36\xfb\xd0\x52\x56\x6c\xf7\xec\xb0\x36\x34\x73\x93\xad\xa0\x4c\x22\x66\xc8\x81\xc1\x5a\x8c\xcb\xa0\xa1\x06\x16\x5b\xb9\x1d\x67\x81\x2f\x0c\xbd\xdc\x64\x2b\xb8\x8d\xd9\x5a\xb2\xd5\x5a\x8e\xdf\x57\x92\xa5\xd1\x56\x35\x0e\xc3\x93\x1f\xad\x6d\xf7\x3d\xd4\x5f\x6d\x92\xb1\x23\x12\x21\xd9\xc1\x69\x3e\x18\x3e\x56\xf2\x38\x4d\x59\x20\x18\xe4\xe9\xb0\x4f\xaa\x34\xeb\x0f\x6f\xbc\x79\x84\x11\xdc\x5d\x79\x8e\xc9\x64\xee\xce\xa8\x37\xa1\x0f\x18\xa1\x07\x8f\xce\xe8\x04\xde\xf6\x58\x4b\x62\x8c\xd0\xa7\xc5\xfc\xeb\x35\xed\x47\x8c\x50\xf1\xfa\xd1\x40\x69\x83\x0e\xf7\x89\xfb\x3c\x6d\x48\x42\x44\xf3\xa5\x8a\x0a\xe4\xe7\x8b\x29\x5d\x90\x8f\x3f\x72\x87\xa3\x60\xb1\x84\x3f\xe5\x7a\x13\x12\xf0\x03\x97\x64\xd4\x23\x18\xbd\x23\x8e\xd3\xc3\xf9\x15\xaf\x94\x18\x20\xd1\x55\xd2\x96\x87\x76\x3b\x0f\x43\x1f\xe8\x8c\x44\xad\x9a\x2d\x30\x8c\x0a\x0a\xcd\xa6\x00\x08\x54\x65\xb7\x05\xa0\x9c\xce\x87\xaf\x3e\x77\x16\x7c\xd9\x7b\xee\xca\x00\xb3\x83\xa9\xc8\x55\x17\x6a\x1d\xba\xf2\xba\x10\xbb\xfa\xde\x5d\xf0\x65\xab\xbc\x2f\x7a\xb3\xe3\x42\xf8\xba\x69\xf6\x87\x38\x1f\x69\x51\x28\xe4\xcf\x98\x89\x2c\xc3\xe8\x66\x22\x0a\x89\x56\x32\x99\x18\x50\xf4\x09\x30\xdf\x8a\xe5\x0a\x97\x5a\xcb\xaf\x81\xb9\x91\x0c\xa0\x49\x33\xe7\xe9\xe9\x97\x08\x8f\x3d\xac\xaf\x6a\x4e\x91\xb2\x79\xbe\x05\x1c\xce\x25\x0c\x47\x5f\x8f\x90\x6a\x2a\xb6\x2d\x9b\xca\xf3\x7c\xe9\x54\x67\x3a\x2b\x1f\x73\x8c\x5b\x94\x10\x08\xff\x8d\xfc\x5c\xa4\xa8\xa6\x57\x96\x03\xa0\x53\x8c\xf7\xb6\x6c\x0a\xbf\xf3\x64\x8a\x13\x9d\x71\xa9\x6f\x22\x77\x35\x96\x93\x95\xa6\x4a\x13\xb5\x8b\xd8\xe5\x89\x72\xbd\x96\x28\xea\x50\xc7\x99\x52\xee\x4f\x36\x50\xf4\x4e\x66\x66\xc9\xe9\x46\xa6\xaa\xe9\x7f\x00\x00\x00\xff\xff\xe2\x07\x72\xde\x47\x0c\x00\x00")
|
||||
|
||||
func _000015_blocks_history_no_nullsUpSqlBytes() ([]byte, error) {
|
||||
return bindataRead(
|
||||
@ -692,7 +692,7 @@ func _000015_blocks_history_no_nullsUpSql() (*asset, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
info := bindataFileInfo{name: "000015_blocks_history_no_nulls.up.sql", size: 2438, mode: os.FileMode(436), modTime: time.Unix(1638551689, 0)}
|
||||
info := bindataFileInfo{name: "000015_blocks_history_no_nulls.up.sql", size: 3143, mode: os.FileMode(436), modTime: time.Unix(1639096820, 0)}
|
||||
a := &asset{bytes: bytes, info: info}
|
||||
return a, nil
|
||||
}
|
||||
|
@ -1,3 +1,16 @@
|
||||
{{if .mysql}}
|
||||
|
||||
UPDATE {{.prefix}}blocks_history AS bh SET bh.parent_id='' WHERE bh.parent_id IS NULL;
|
||||
UPDATE {{.prefix}}blocks_history AS bh SET bh.schema='' WHERE bh.schema IS NULL;
|
||||
UPDATE {{.prefix}}blocks_history AS bh SET bh.type='' WHERE bh.type IS NULL;
|
||||
UPDATE {{.prefix}}blocks_history AS bh SET bh.title='' WHERE bh.title IS NULL;
|
||||
UPDATE {{.prefix}}blocks_history AS bh SET bh.fields='' WHERE bh.fields IS NULL;
|
||||
UPDATE {{.prefix}}blocks_history AS bh SET bh.create_at=0 WHERE bh.create_at IS NULL;
|
||||
UPDATE {{.prefix}}blocks_history AS bh SET bh.root_id='' WHERE bh.root_id IS NULL;
|
||||
UPDATE {{.prefix}}blocks_history AS bh SET bh.created_by='system' WHERE bh.created_by IS NULL;
|
||||
|
||||
{{else}}
|
||||
|
||||
/* parent_id */
|
||||
UPDATE {{.prefix}}blocks_history AS bh1
|
||||
SET parent_id = COALESCE(
|
||||
@ -87,4 +100,6 @@ UPDATE {{.prefix}}blocks_history AS bh1
|
||||
WHERE bh1.id = bh2.id AND bh2.created_by IS NOT NULL
|
||||
ORDER BY bh2.insert_at ASC limit 1)
|
||||
, 'system')
|
||||
WHERE created_by IS NULL;
|
||||
WHERE created_by IS NULL;
|
||||
|
||||
{{end}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user