diff --git a/.github/workflows/release-action.yml b/.github/workflows/release-action.yml index 0af6670..b43d6cc 100644 --- a/.github/workflows/release-action.yml +++ b/.github/workflows/release-action.yml @@ -52,7 +52,7 @@ jobs: shopt -s extglob mkdir -p ./temp/${{ github.event.repository.name }} mkdir -p ./temp/${{ github.event.repository.name }}/web - cp ./{README.md,LICENSE,config.lua,fxmanifest.lua} ./temp/${{ github.event.repository.name }} + cp ./{README.md,LICENSE,config.lua,fxmanifest.lua,Renewed-Banking.sql} ./temp/${{ github.event.repository.name }} cp -r ./{client,locales,server} ./temp/${{ github.event.repository.name }} cp -r ./web/public ./temp/${{ github.event.repository.name }}/web/public cd ./temp && zip -r ../${{ github.event.repository.name }}.zip ./${{ github.event.repository.name }} diff --git a/server/main.lua b/server/main.lua index aa60750..9415dda 100644 --- a/server/main.lua +++ b/server/main.lua @@ -658,4 +658,23 @@ function ExportHandler(resource, name, cb) AddEventHandler(('__cfx_export_%s_%s'):format(resource, name), function(setCB) setCB(cb) end) -end \ No newline at end of file +end + +MySQL.query.await([=[ + CREATE TABLE IF NOT EXISTS `bank_accounts_new` ( + `id` varchar(50) NOT NULL, + `amount` int(11) DEFAULT 0, + `transactions` longtext DEFAULT '[]', + `auth` longtext DEFAULT '[]', + `isFrozen` int(11) DEFAULT 0, + `creator` varchar(50) DEFAULT NULL, + PRIMARY KEY (`id`) + ); + + CREATE TABLE IF NOT EXISTS `player_transactions` ( + `id` varchar(50) NOT NULL, + `isFrozen` int(11) DEFAULT 0, + `transactions` longtext DEFAULT '[]', + PRIMARY KEY (`id`) + ); +]=]) \ No newline at end of file