mirror of
https://github.com/filecoin-project/slate.git
synced 2024-09-11 22:07:08 +03:00
updated flattening migration
This commit is contained in:
parent
d637d683cf
commit
24b09cf0ba
@ -164,12 +164,6 @@ const addFileColumns = async () => {
|
||||
});
|
||||
};
|
||||
|
||||
const editColumns = async () => {
|
||||
await DB.schema.alterTable("files", function (table) {
|
||||
table.text("linkHtml").nullable().alter();
|
||||
});
|
||||
};
|
||||
|
||||
/* Migrate over to new columns (and denormalize tags) */
|
||||
|
||||
const defaultPhotos = [
|
||||
@ -327,11 +321,9 @@ const runScript = async () => {
|
||||
// await addSlateColumns();
|
||||
// await addFileColumns();
|
||||
|
||||
// await editColumns();
|
||||
|
||||
// await migrateUserTable();
|
||||
// await migrateSlateTable();
|
||||
await migrateFileTable();
|
||||
// await migrateFileTable();
|
||||
|
||||
// await deleteOldData();
|
||||
console.log("SCRIPT FINISHED. HIT CTRL + C TO END");
|
||||
|
Loading…
Reference in New Issue
Block a user